Disallow multiple assignments to Deck::datafile

This commit is contained in:
Joakim Hove
2021-09-16 14:03:17 +02:00
parent 0355a71abd
commit 4920b0ea3a
3 changed files with 8 additions and 9 deletions

View File

@@ -146,7 +146,6 @@ BOOST_AUTO_TEST_CASE(keywordList_getbyindex_correctkeywordreturned) {
BOOST_AUTO_TEST_CASE(set_and_get_data_file) {
Deck deck;
BOOST_CHECK_EQUAL("", deck.getDataFile());
BOOST_CHECK_EQUAL("", deck.getInputPath());
BOOST_CHECK_EQUAL("some/path", deck.makeDeckPath("some/path"));
BOOST_CHECK_EQUAL("/abs/path", deck.makeDeckPath("/abs/path"));
@@ -157,10 +156,6 @@ BOOST_AUTO_TEST_CASE(set_and_get_data_file) {
BOOST_CHECK_EQUAL("/path/to", deck.getInputPath());
BOOST_CHECK_EQUAL("/path/to/some/path", deck.makeDeckPath("some/path"));
BOOST_CHECK_EQUAL("/abs/path", deck.makeDeckPath("/abs/path"));
deck.setDataFile("FILE");
BOOST_CHECK_EQUAL("FILE", deck.getDataFile());
BOOST_CHECK_EQUAL("", deck.getInputPath());
}
BOOST_AUTO_TEST_CASE(DummyDefaultsString) {