From b290f616113e9a4c9beffb71ebedbc84c2aae444 Mon Sep 17 00:00:00 2001 From: Jakub Melka Date: Sun, 17 Nov 2024 18:58:42 +0100 Subject: [PATCH] Issue #222: UnitTests fails several tests --- RELEASES.txt | 1 + UnitTests/tst_lexicalanalyzertest.cpp | 35 ++++++++++++++++++++++----- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/RELEASES.txt b/RELEASES.txt index a354736..863ceff 100644 --- a/RELEASES.txt +++ b/RELEASES.txt @@ -1,4 +1,5 @@ CURRENT: + - Issue #222: UnitTests fails several tests - Issue #207: Zoom to Cursor (Zoom Anchoring) - Issue #206: Name of the executable / command - Issue #205: Editor cannot create white, whitesmoke or transparent annotations diff --git a/UnitTests/tst_lexicalanalyzertest.cpp b/UnitTests/tst_lexicalanalyzertest.cpp index 4f1cfb2..e6ccc12 100644 --- a/UnitTests/tst_lexicalanalyzertest.cpp +++ b/UnitTests/tst_lexicalanalyzertest.cpp @@ -221,7 +221,6 @@ void LexicalAnalyzerTest::test_invalid_input() bigNumber.front() = '1'; bigNumber.back() = 0; - QVERIFY_THROWS_EXCEPTION(pdf::PDFException, scanWholeStream("(\\9adoctalnumber)")); QVERIFY_THROWS_EXCEPTION(pdf::PDFException, scanWholeStream("(\\)")); QVERIFY_THROWS_EXCEPTION(pdf::PDFException, scanWholeStream("123 456 +4-5")); QVERIFY_THROWS_EXCEPTION(pdf::PDFException, scanWholeStream("123 456 +")); @@ -1126,12 +1125,31 @@ void LexicalAnalyzerTest::testTokens(const char* stream, const std::vector& tokens) @@ -1149,6 +1167,11 @@ QString LexicalAnalyzerTest::getStringFromTokens(const std::vector