Browse Source
Updated DFT test which is not throwing an exception anymore
tempestpy_adaptions
Matthias Volk
4 years ago
No known key found for this signature in database
GPG Key ID: 83A57678F739FCD3
1 changed files with
5 additions and
2 deletions
-
src/test/storm-dft/api/DftParserTest.cpp
|
|
@ -26,8 +26,11 @@ namespace { |
|
|
|
STORM_SILENT_EXPECT_THROW(storm::api::loadDFTGalileoFile<double>(file), storm::exceptions::WrongFormatException); |
|
|
|
} |
|
|
|
|
|
|
|
TEST(DftParserTest, CatchSeqChildren) { |
|
|
|
TEST(DftParserTest, LoadSeqChildren) { |
|
|
|
std::string file = STORM_TEST_RESOURCES_DIR "/dft/seqChild.dft"; |
|
|
|
STORM_SILENT_EXPECT_THROW(storm::api::loadDFTGalileoFile<double>(file), storm::exceptions::WrongFormatException); |
|
|
|
std::shared_ptr<storm::storage::DFT<double>> dft = storm::api::loadDFTGalileoFile<double>(file); |
|
|
|
EXPECT_EQ(4ul, dft->nrElements()); |
|
|
|
EXPECT_EQ(2ul, dft->nrBasicElements()); |
|
|
|
EXPECT_TRUE(storm::api::isWellFormed(*dft).first); |
|
|
|
} |
|
|
|
} |