Browse Source

Fixed tests to comply with new requirement for hint in tra-file (needs to be at the very beginning, no prior white spaces).

Former-commit-id: 60bfb720b8
tempestpy_adaptions
dehnert 10 years ago
parent
commit
59dbc5a71e
  1. 4
      test/functional/parser/MappedFileTest.cpp

4
test/functional/parser/MappedFileTest.cpp

@ -23,8 +23,8 @@ TEST(MappedFileTest, BasicFunctionality) {
// Open a file and test if the content is loaded as expected.
storm::parser::MappedFile file(STORM_CPP_TESTS_BASE_PATH "/functional/parser/testStringFile.txt");
std::string testString = "This is a test string.";
char * dataPtr = file.getData();
for(char const * testStringPtr = testString.c_str(); testStringPtr - testString.c_str() < 22; testStringPtr++) {
char const* dataPtr = file.getData();
for(char const* testStringPtr = testString.c_str(); testStringPtr - testString.c_str() < 22; testStringPtr++) {
ASSERT_EQ(*testStringPtr, *dataPtr);
dataPtr++;
}

Loading…
Cancel
Save