Skip to content

Commit

Permalink
add minor modification in Comparator unit tests
Browse files Browse the repository at this point in the history
issue #31
  • Loading branch information
Valentin Noel committed Nov 26, 2013
1 parent 3dfe678 commit 31433ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libraries/Comparator/test/comparatorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ BOOST_AUTO_TEST_CASE( comparator_test_comparator_2 )
{ "id": "value153", "label": "Value153", "type": "ascii", "values": "R183" }
]
},
{
"id": "value16",
"label": "Value16",
"type": "hexa",
"values": "533230"
},
{
"id": "valueEnd",
"label": "ValueEnd",
Expand Down Expand Up @@ -230,7 +236,8 @@ BOOST_AUTO_TEST_CASE( comparator_test_comparator_2 )
BOOST_CHECK_EQUAL( node->firstChild()->next()->firstChild()->getId(), "value151" );
BOOST_CHECK_EQUAL( node->firstChild()->next()->firstChild()->next()->getId(), "value152" );
BOOST_CHECK_EQUAL( node->firstChild()->next()->firstChild()->next()->next()->getId(), "value153" );
BOOST_CHECK_EQUAL( node->firstChild()->next()->next()->getId(), "valueEnd" );
BOOST_CHECK_EQUAL( node->firstChild()->next()->next()->getId(), "value16" );
BOOST_CHECK_EQUAL( node->firstChild()->next()->next()->next()->getId(), "valueEnd" );

Comparator comp;

Expand All @@ -240,6 +247,7 @@ BOOST_AUTO_TEST_CASE( comparator_test_comparator_2 )
std::string str = "A1";
str += "J10K11M1314O15P16Q17Q173Q172Q1721";
str += "R18R182R183R181R18R183R181";
str += "S20";
str += "END";

buffer.sputn( str.c_str(), str.size() );
Expand Down

0 comments on commit 31433ad

Please sign in to comment.