diff --git a/src/test/storm/parser/GameFormulaParserTest.cpp b/src/test/storm/parser/GameFormulaParserTest.cpp index ede75a6ad..82979d17f 100644 --- a/src/test/storm/parser/GameFormulaParserTest.cpp +++ b/src/test/storm/parser/GameFormulaParserTest.cpp @@ -243,4 +243,16 @@ TEST(GameFormulaParserTest, NestedPathFormulaTest) { EXPECT_TRUE(formula->asGameFormula().getSubformula().isProbabilityOperatorFormula()); ASSERT_TRUE(formula->asGameFormula().getSubformula().asProbabilityOperatorFormula().getSubformula().isEventuallyFormula()); ASSERT_TRUE(formula->asGameFormula().getSubformula().asProbabilityOperatorFormula().getSubformula().asEventuallyFormula().getSubformula().isNextFormula()); +} + +TEST(GameFormulaParserTest, CommentTest) { + storm::parser::FormulaParser formulaParser; + + std::string input = "// This is a comment. And this is a commented out formula: <
> P<=0.5 [ F \"a\" ] The next line contains the actual formula. \n<
> P<=0.5 [ X \"b\" ] // Another comment \n // And again: another comment.";
+ std::shared_ptr