Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
HEP
HEPnOS
Commits
0059963a
Commit
0059963a
authored
Feb 13, 2019
by
Matthieu Dorier
Browse files
added a test for invalid datasets
parent
f23ea01e
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/DataStoreTest.cpp
View file @
0059963a
...
...
@@ -26,6 +26,11 @@ void DataStoreTest::testFillDataStore() {
CPPUNIT_ASSERT_EQUAL_STR
(
"ds1"
,
ds1
.
name
());
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"
];
CPPUNIT_ASSERT
(
!
ds_invalid
.
valid
());
CPPUNIT_ASSERT
(
!
ds_invalid2
.
valid
());
// assert comparison with a default-constructed dataset
DataSet
ds0
;
CPPUNIT_ASSERT
(
ds0
!=
ds1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment