Default: Using setInDeck() instead of relying on size == 1
This commit is contained in:
@@ -86,7 +86,7 @@ static void check_parser(ParserPtr parser) {
|
||||
|
||||
DeckItemConstPtr item2_0 = record2->getItem("GAS_PRESSURE");
|
||||
DeckItemConstPtr item2_1 = record2->getItem("DATA");
|
||||
BOOST_CHECK_EQUAL(1U , item2_0->size());
|
||||
BOOST_CHECK( !item2_0->setInDeck());
|
||||
BOOST_CHECK_EQUAL(0U , item2_1->size());
|
||||
BOOST_CHECK_EQUAL(2U , record2->size());
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ static void check_parser(ParserPtr parser) {
|
||||
|
||||
DeckItemConstPtr item2_0 = record2->getItem("RS");
|
||||
DeckItemConstPtr item2_1 = record2->getItem("DATA");
|
||||
BOOST_CHECK_EQUAL(1U , item2_0->size());
|
||||
BOOST_CHECK(!item2_0->setInDeck());
|
||||
BOOST_CHECK_EQUAL(0U , item2_1->size());
|
||||
BOOST_CHECK_EQUAL(2U , record2->size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user