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
						
					
					
						
							803 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							25 lines
						
					
					
						
							803 B
						
					
					
				| /* | |
|  * ParseMdpTest.cpp | |
|  * | |
|  *  Created on: 14.01.2013 | |
|  *      Author: Thomas Heinemann | |
|  */ | |
| 
 | |
| 
 | |
| #include "gtest/gtest.h" | |
| #include "storm-config.h" | |
| #include "src/parser/NondeterministicModelParser.h" | |
|  | |
| TEST(ParseMdpTest, parseAndOutput) { | |
| 	storm::models::Mdp<double> mdp = storm::parser::NondeterministicModelParserAsMdp( | |
| 		STORM_CPP_TESTS_BASE_PATH "/functional/parser/tra_files/mdp_general_input_01.tra", | |
| 		STORM_CPP_TESTS_BASE_PATH "/functional/parser/lab_files/pctl_general_input_01.lab"); | |
| 	storm::storage::SparseMatrix<double> const& matrix = mdp.getTransitionMatrix(); | |
| 
 | |
| 	ASSERT_EQ(mdp.getNumberOfStates(), (uint_fast64_t)3); | |
| 	ASSERT_EQ(mdp.getNumberOfTransitions(), (uint_fast64_t)11); | |
| 	ASSERT_EQ(matrix.getRowCount(), (uint_fast64_t)(2 * 3)); | |
| 	ASSERT_EQ(matrix.getColumnCount(), (uint_fast64_t)3); | |
| } | |
| 
 | |
| 
 |