summaryrefslogtreecommitdiff
path: root/starmath/qa/cppunit
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-05-12 12:41:09 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-05-13 01:40:50 +0000
commitb43b79648f4fbcd815092268d1b7a5af9e278f52 (patch)
tree07c3b1d4a77b89363e4ab772bc39ed4b05bcbc45 /starmath/qa/cppunit
parentdb729f3b685fd832a3ec7387b339cf2bbeb4bd4d (diff)
starmath: SmMatrixNode should have the node TMATRIX
... rather than the one after its closing brace. So far having an arbitrary node is OK for SmMatrixNode because existing code does not refer to it, but it is saner to keep relevant nodes in the syntax tree. Change-Id: Ia5412454c996eedde1545cd8a2f323eb95593eb9 Reviewed-on: https://gerrit.libreoffice.org/24909 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/qa/cppunit')
-rw-r--r--starmath/qa/cppunit/mock-visitor.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/starmath/qa/cppunit/mock-visitor.hxx b/starmath/qa/cppunit/mock-visitor.hxx
index 63134cab648c..79e578483c94 100644
--- a/starmath/qa/cppunit/mock-visitor.hxx
+++ b/starmath/qa/cppunit/mock-visitor.hxx
@@ -94,6 +94,8 @@ public:
void Visit( SmMatrixNode* pNode ) override {
CPPUNIT_ASSERT_EQUAL_MESSAGE("SmMatrixNode should have type NMATRIX",
NMATRIX, pNode->GetType());
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("SmMatrixNode's token should be of type TMATRIX",
+ TMATRIX, pNode->GetToken().eType);
VisitChildren( pNode );
}