From 8b1d5804c9242a6ed965d072283dd56b7debec5f Mon Sep 17 00:00:00 2001 From: PBerger Date: Thu, 20 Sep 2012 04:08:57 +0200 Subject: [PATCH] Edited the test cases from the parsers, added a missing FAIL() in the dead branches. --- test/parser/read_lab_file_test.cpp | 2 ++ test/parser/read_tra_file_test.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/parser/read_lab_file_test.cpp b/test/parser/read_lab_file_test.cpp index b2ee34ce3..afaae3111 100644 --- a/test/parser/read_lab_file_test.cpp +++ b/test/parser/read_lab_file_test.cpp @@ -76,6 +76,8 @@ TEST(ReadLabFileTest, ParseTest) { //Deleting the labeling delete labeling; + } else { + FAIL(); } } diff --git a/test/parser/read_tra_file_test.cpp b/test/parser/read_tra_file_test.cpp index e2eed9787..60dad7eb0 100644 --- a/test/parser/read_tra_file_test.cpp +++ b/test/parser/read_tra_file_test.cpp @@ -62,6 +62,8 @@ TEST(ReadTraFileTest, ParseFileTest1) { ASSERT_TRUE(result->getValue(4,4,&val)); ASSERT_EQ(val,0); delete result; + } else { + FAIL(); } }