diff options
-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", |