diff options
Diffstat (limited to 'basic/qa/cppunit/test_scanner.cxx')
-rw-r--r-- | basic/qa/cppunit/test_scanner.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/basic/qa/cppunit/test_scanner.cxx b/basic/qa/cppunit/test_scanner.cxx index 4efcb829c217..e81af6106542 100644 --- a/basic/qa/cppunit/test_scanner.cxx +++ b/basic/qa/cppunit/test_scanner.cxx @@ -178,6 +178,7 @@ namespace const OUString sourceEE("=="); const OUString sourceNE("<>"); const OUString sourceA(":="); + const OUString sourceNot("Not"); std::vector<Symbol> symbols; @@ -238,6 +239,13 @@ namespace CPPUNIT_ASSERT_EQUAL(SbxVARIANT, symbols[0].type); CPPUNIT_ASSERT_EQUAL(cr, symbols[1].text); CPPUNIT_ASSERT_EQUAL(SbxVARIANT, symbols[1].type); + + symbols = getSymbols(sourceNot); + CPPUNIT_ASSERT_EQUAL(size_t(2), symbols.size()); + CPPUNIT_ASSERT_EQUAL(sourceNot, symbols[0].text); + CPPUNIT_ASSERT_EQUAL(SbxVARIANT, symbols[0].type); + CPPUNIT_ASSERT_EQUAL(cr, symbols[1].text); + CPPUNIT_ASSERT_EQUAL(SbxVARIANT, symbols[1].type); } void ScannerTest::testAlphanum() |