Added test for compile time polymorphism
This commit is contained in:
@@ -496,3 +496,12 @@ BOOST_AUTO_TEST_CASE(scan_intsAndStrings_dataCorrect) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_CASE(ParserItemCheckEqualsOverride) {
|
||||
ParserItemConstPtr itemDefault10( new ParserIntItem("ITEM" , 10) );
|
||||
ParserItemConstPtr itemDefault20( new ParserIntItem("ITEM" , 20) );
|
||||
|
||||
BOOST_CHECK( itemDefault10->equal( *itemDefault10 ));
|
||||
BOOST_CHECK_EQUAL( false , itemDefault10->equal( *itemDefault20 ));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user