summaryrefslogtreecommitdiff
path: root/starmath/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-20 12:34:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-20 12:37:04 +0000
commit3f347fefc53a63c71a198232f1237684cb495ac9 (patch)
tree6773391184afa27016288a36a918d94475d43707 /starmath/qa
parent1dd1dae66786cb7b50ac6c4b988ba891e6e0342d (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.
Diffstat (limited to 'starmath/qa')
-rw-r--r--starmath/qa/cppunit/test_starmath.cxx10
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",