diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-20 12:34:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-20 12:37:04 +0000 |
commit | 3f347fefc53a63c71a198232f1237684cb495ac9 (patch) | |
tree | 6773391184afa27016288a36a918d94475d43707 | |
parent | 1dd1dae66786cb7b50ac6c4b988ba891e6e0342d (diff) |
The change from List to vector changes order of error messages
Which IMO is probably a good thing as the first error is now
at the start, and the last at the end. Which is way more sane,
so change test rather than change code.
-rw-r--r-- | starmath/qa/cppunit/test_starmath.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 0d7bbd4d64b6..f5a5ae38f5af 100644 --- a/starmath/qa/cppunit/test_starmath.cxx +++ b/starmath/qa/cppunit/test_starmath.cxx @@ -222,6 +222,11 @@ void Test::tmEditFailure() const SmErrorDesc *pErrorDesc = m_xDocShRef->GetParser().NextError(); + CPPUNIT_ASSERT_MESSAGE("Should be a PE_COLOR_EXPECTED", + pErrorDesc && pErrorDesc->Type == PE_COLOR_EXPECTED); + + pErrorDesc = m_xDocShRef->GetParser().PrevError(); + CPPUNIT_ASSERT_MESSAGE("Should be a PE_UNEXPECTED_CHAR", pErrorDesc && pErrorDesc->Type == PE_UNEXPECTED_CHAR); @@ -230,11 +235,6 @@ void Test::tmEditFailure() CPPUNIT_ASSERT_MESSAGE("Should be a PE_RGROUP_EXPECTED", pErrorDesc && pErrorDesc->Type == PE_RGROUP_EXPECTED); - pErrorDesc = m_xDocShRef->GetParser().PrevError(); - - CPPUNIT_ASSERT_MESSAGE("Should be a PE_COLOR_EXPECTED", - pErrorDesc && pErrorDesc->Type == PE_COLOR_EXPECTED); - const SmErrorDesc *pLastErrorDesc = m_xDocShRef->GetParser().PrevError(); CPPUNIT_ASSERT_MESSAGE("Should be three syntax errors", |