You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
653 B

  1. /*
  2. * ParseDtmcTest.cpp
  3. *
  4. * Created on: 03.12.2012
  5. * Author: Thomas Heinemann
  6. */
  7. #include "gtest/gtest.h"
  8. #include "storm-config.h"
  9. #include "src/parser/DtmcParser.h"
  10. #include "src/utility/IoUtility.h"
  11. TEST(ParseDtmcTest, parseAndOutput) {
  12. storm::parser::DtmcParser* dtmcParser;
  13. ASSERT_NO_THROW(dtmcParser = new storm::parser::DtmcParser(
  14. STORM_CPP_TESTS_BASE_PATH "/parser/tra_files/pctl_general_input_01.tra",
  15. STORM_CPP_TESTS_BASE_PATH "/parser/lab_files/pctl_general_input_01.lab"));
  16. ASSERT_NO_THROW(storm::utility::dtmcToDot(*(dtmcParser->getDtmc()), STORM_CPP_TESTS_BASE_PATH "/parser/output.dot"));
  17. delete dtmcParser;
  18. }