From fcfa292205a27b52635a650ff2ff090ecba6668d Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 14 Jul 2010 20:00:32 +0300 Subject: [PATCH] Fix tests after severity-refactor. Now previously used testSeverity is not valid severity. --- test/testcppcheck.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/testcppcheck.cpp b/test/testcppcheck.cpp index cc9f1fdd0..9795f936e 100644 --- a/test/testcppcheck.cpp +++ b/test/testcppcheck.cpp @@ -396,11 +396,11 @@ private: loc.line = 10; errorMessage._callStack.push_back(loc); errorMessage._id = "testId"; - errorMessage._severity = "testSeverity"; + errorMessage._severity = Severity::fromString("error"); errorMessage._msg = "long testMessage"; - ASSERT_EQUALS("", errorMessage.toXML()); - ASSERT_EQUALS("[some/{file}file.cpp:10]: (testSeverity) long testMessage", errorMessage.toString()); - ASSERT_EQUALS("testId-some/{file}file.cpp,testSeverity.10?{long testMessage}", errorMessage.toString("{id}-{file},{severity}.{line}?{{message}}")); + ASSERT_EQUALS("", errorMessage.toXML()); + ASSERT_EQUALS("[some/{file}file.cpp:10]: (error) long testMessage", errorMessage.toString()); + ASSERT_EQUALS("testId-some/{file}file.cpp,error.10?{long testMessage}", errorMessage.toString("{id}-{file},{severity}.{line}?{{message}}")); } void getErrorMessages()