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.

24 lines
581 B

  1. /*
  2. * parse_dtmc_test.cpp
  3. *
  4. * Created on: 03.12.2012
  5. * Author: Thomas Heinemann
  6. */
  7. #include "gtest/gtest.h"
  8. #include "mrmc-config.h"
  9. #include "src/utility/ioUtility.h"
  10. TEST(ParseDtmcTest, parseAndOutput) {
  11. mrmc::models::Dtmc<double>* myDtmc;
  12. ASSERT_NO_THROW(myDtmc = mrmc::utility::parseDTMC(
  13. MRMC_CPP_TESTS_BASE_PATH "/parser/tra_files/pctl_general_input_01.tra",
  14. MRMC_CPP_TESTS_BASE_PATH "/parser/lab_files/pctl_general_input_01.lab"));
  15. ASSERT_NO_THROW(mrmc::utility::dtmcToDot(myDtmc, MRMC_CPP_TESTS_BASE_PATH "/parser/output.dot"));
  16. delete myDtmc;
  17. }