377TEST(JaniParser, DieArrayExampleTest) {
378 std::pair<storm::jani::Model, std::vector<storm::jani::Property>> result;
381 EXPECT_TRUE(result.first.containsArrayVariables());
382 EXPECT_TRUE(result.first.hasGlobalVariable(
"sd"));
383 EXPECT_EQ(1ul, result.first.getNumberOfAutomata());
387 std::pair<storm::jani::Model, std::vector<storm::jani::Property>> result;
390 EXPECT_TRUE(result.first.containsArrayVariables());
391 EXPECT_TRUE(result.first.hasGlobalVariable(
"workstations_up"));
392 EXPECT_TRUE(result.first.hasGlobalVariable(
"workstations_up"));
393 EXPECT_EQ(6ul, result.first.getNumberOfAutomata());
394 EXPECT_TRUE(result.first.getAutomaton(
"Switch").hasVariable(
"id"));
395 EXPECT_TRUE(result.first.getAutomaton(
"Switch_1").hasVariable(
"id"));
396 EXPECT_TRUE(result.first.getAutomaton(
"Workstation").hasVariable(
"id"));
397 EXPECT_TRUE(result.first.getAutomaton(
"Workstation_1").hasVariable(
"id"));
398 EXPECT_TRUE(result.first.getAutomaton(1).hasVariable(
"id"));
401TEST(JaniParser, DieArrayNestedExampleTest) {
402 std::pair<storm::jani::Model, std::vector<storm::jani::Property>> result;
405 EXPECT_TRUE(result.first.containsArrayVariables());
406 EXPECT_TRUE(result.first.hasGlobalVariable(
"sd"));
407 EXPECT_EQ(1ul, result.first.getNumberOfAutomata());
410TEST(JaniParser, UnassignedVariablesTest) {
411 std::pair<storm::jani::Model, std::vector<storm::jani::Property>> result;
414 EXPECT_TRUE(result.first.hasConstant(
"c"));
415 EXPECT_EQ(2ul, result.first.getNumberOfAutomata());
418TEST(JaniParser, TrigonometryAndTranscendentalNumbersTest) {
419 std::pair<storm::jani::Model, std::vector<storm::jani::Property>> result;
421 auto& model = result.first;
422 auto& properties = result.second;
424 EXPECT_EQ(model.getNumberOfAutomata(), 1U);
425 EXPECT_EQ(properties.size(), 2U);
426 EXPECT_NO_THROW(model.substitute({},
true));