diff options
author | Eike Rathke <erack@redhat.com> | 2013-10-14 14:55:23 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-10-15 16:02:56 +0000 |
commit | d8b9d9e84ef2e18bda11d51f6c9eb1fe4f1fb791 (patch) | |
tree | dda63a153ce0b2623f66bba3a3fb3b8359b16fce /basic | |
parent | 22e58528fed41b15d242eb9e85dc25c51ec01e4d (diff) |
resolved fdo#70319 exponent must be followed by at least one digit
(cherry picked from commit f20feba4c43c34fd2ee05b4658b0de0248c08eb9)
work around crappy SbiScanner::NextSym(), fdo#70319
just to make test not fail that was wrong anyway
(cherry picked from commit 472ad8ba7ef99982025b37aba562f2135ca8a999)
Change-Id: Icdd22fa0f1efcdd18cfea7cb48e1cbf2cf8d3533
Reviewed-on: https://gerrit.libreoffice.org/6241
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/qa/cppunit/test_scanner.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/basic/qa/cppunit/test_scanner.cxx b/basic/qa/cppunit/test_scanner.cxx index 9c8d38842916..acf740fb03a1 100644 --- a/basic/qa/cppunit/test_scanner.cxx +++ b/basic/qa/cppunit/test_scanner.cxx @@ -647,6 +647,8 @@ namespace CPPUNIT_ASSERT(symbols[1].text == cr); CPPUNIT_ASSERT(errors == 0); + /* FIXME: SbiScanner::NextSym() is total crap, the result of scanning + * "12e++3" should be something different than this.. */ symbols = getSymbols(source12, errors); CPPUNIT_ASSERT(symbols.size() == 4); CPPUNIT_ASSERT(symbols[0].number == 12); @@ -655,7 +657,7 @@ namespace CPPUNIT_ASSERT(symbols[2].number == 3); CPPUNIT_ASSERT(symbols[2].type == SbxINTEGER); CPPUNIT_ASSERT(symbols[3].text == cr); - CPPUNIT_ASSERT(errors == 0); + CPPUNIT_ASSERT(errors == 1); symbols = getSymbols(source13, errors); CPPUNIT_ASSERT(symbols.size() == 2); |