Commit 0059963a authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added a test for invalid datasets

parent f23ea01e
......@@ -26,6 +26,11 @@ void DataStoreTest::testFillDataStore() {
CPPUNIT_ASSERT_EQUAL_STR("", ds1.container());
CPPUNIT_ASSERT_EQUAL_STR("ds1", ds1.fullname());
// assert invalid dataset when it does not exist
DataSet ds_invalid = (*datastore)["invalid"];
DataSet ds_invalid2 = (*datastore)["invalid2"];
// assert comparison with a default-constructed dataset
DataSet ds0;
CPPUNIT_ASSERT(ds0 != ds1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment