Moved testdata into integration test folder. Added build folder to gitignore

This commit is contained in:
Kristian Flikka
2013-08-21 09:35:38 +02:00
parent 002ab45f77
commit c7fa8a2e0a
10 changed files with 46 additions and 12 deletions

View File

@@ -151,19 +151,17 @@ BOOST_AUTO_TEST_CASE(Parse_InvalidInputFile_Throws) {
}
BOOST_AUTO_TEST_CASE(Parse_ValidInputFile_NoThrow) {
boost::filesystem::path singleKeywordFile("testdata/small.data");
boost::filesystem::path singleKeywordFile("testdata/integration_tests/small.data");
ParserPtr parser(new Parser(JSON_CONFIG_FILE));
BOOST_CHECK_NO_THROW(parser->parse(singleKeywordFile.string()));
}
/***************** Testing non-recognized keywords ********************/
BOOST_AUTO_TEST_CASE(loadKeywordsJSON_manyKeywords_returnstrue) {
ParserPtr parser(new Parser());
Json::JsonObject jsonConfig( "[{\"name\" : \"BPR\" , \"size\" : 100}, {\"name\" : \"WWCT\"} , {\"name\" : \"EQUIL\" , \"size\" : 100}]");
parser->loadKeywords( jsonConfig );
BOOST_CHECK(parser->hasKeyword("BPR"));
BOOST_CHECK(parser->hasKeyword("WWCT"));
BOOST_CHECK(parser->hasKeyword("EQUIL"));
}
//BOOST_AUTO_TEST_CASE(loadKeywordsJSON_manyKeywords_returnstrue) {
// ParserPtr parser(new Parser());
// Json::JsonObject jsonConfig( "[{\"name\" : \"BPR\" , \"size\" : 100}, {\"name\" : \"WWCT\"} , {\"name\" : \"EQUIL\" , \"size\" : 100}]");
// parser->loadKeywords( jsonConfig );
//
// parser->parse("testdata/someobscureelements.data");
//}