aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testDocument.cxx
AgeCommit message (Collapse)AuthorFilesLines
2025-03-03Feature [feature-requests:#1417]. Improve UTF-8 segmentation for some controlNeil1-0/+131
characters and invalid bytes. Add more test cases.
2025-02-23Feature [feature-requests:#1540]. Remove unused variable.Neil1-17/+0
2025-02-04Fix segmentation of long lexemes to avoid breaking before modifiers like accentsNeil1-0/+56
that must be drawn with their base letters. This is only a subset of implementing grapheme cluster boundaries but it improves behaviour with some Asian scripts like Thai and Javanese. Javanese is mostly written with (ASCII) Roman characters so issues will be rare but Thai uses Thai script. Also slightly improves placement of combining accents in European texts. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14822 https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16115
2025-01-22Bug [#1224]. Remember selection in undo history. SCI_SETSELECTIONUNDOHISTORY.Neil1-0/+1
2024-11-30Feature [feature-requests:#1533]. Tests for BraceMatch.Zufu Liu1-0/+49
2024-11-26Bug [#2458]. Add include of cstdint to provide intptr_t and uintptr_t.Neil1-0/+1
2024-01-30Avoid warnings in unit tests with const, nullptr, [[nodiscard]], initialisation,Neil1-3/+3
and unnamed namespace.
2024-01-02Fix warnings in test case code mostly by adding const.Neil1-2/+2
2024-01-02Add tests for undo of Document.Neil1-0/+81
2023-12-21Bug [#2405]. Avoid character fragments in regular expression search results.Zufu Liu1-0/+38
2023-12-14Bug [#2405]. Fix regular expression bug in reverse direction where shortenedZufu Liu1-1/+1
match returned.
2023-12-12Bug [#2405]. Fix regular expression assertion (^, $, \b. \B) failures when usingZufu Liu1-5/+32
SCFIND_CXX11REGEX.
2023-12-11Add std::regex tests for assertions in context which are common.Neil1-0/+42
Two of these tests are currently returning incorrect results.
2023-12-07Simplify substitution checks.Zufu Liu1-39/+34
Set global locale for llvm-mingw libc++. Add test for \w+ which currently fails for RESearch.
2023-12-06Shorten tests with some helpers.Neil1-106/+83
2023-12-02Bug [#2157]. Fix regular expression search for word begin \< and word end \>.Zufu Liu1-0/+130
2023-11-07Feature [feature-requests:#1501] Use string_view and constexpr in unit tests.Zufu Liu1-50/+50
2023-10-26Add LineStartPosition to replace common idiom LineStart(LineFromPosition(x)) asNeil1-0/+1
this shortens code. LineStartPosition is also noexcept which allows callers to be noexcept.
2023-10-19Fix regex test failures on Unix by setting global locale.Zufu Liu1-0/+12
2023-10-15Bug [#2405]. Fix incorrect substitution when searching for a regular expressionZufu Liu1-0/+46
backwards.
2022-07-17Feature [feature-requests:#1442] Added PerLine tests for LineMarkers andZufu Liu1-0/+70
LineAnnotation. Line deletion behaviour could be defined differently but current behaviour was most expected in most circumstances.
2022-04-08Feature [feature-requests:#1389] Initialize CaseFolderTable to ASCII soNeil1-2/+0
subclasses do not need to call StandardASCII. Avoid some lint warnings.
2021-10-21Feature [feature-requests:#1417] Use backward iteration to find space / controlZufu Liu1-0/+117
character and text / punctuation boundaries in SafeSegment as will be simpler and faster in almost all cases. Simplify BreakFinder::Next calling SafeSegment.
2021-08-24Remove line end white space.Neil1-2/+2
2021-07-17Fix minor inconsistency with word searching results at start and end of documentNeil1-0/+8
which were considered word start / end positions even when first or last character did not fit requirements.
2021-07-17Extract word edge detection to prepare for fixing bug.Neil1-0/+23
This change does not affect behaviour.
2021-07-16Feature [feature-requests:#1381] Fix position returned when in 2nd segment.Neil1-0/+19
2021-07-14Feature [feature-requests:#1408] More accurate handling of invalid DBCS byteNeil1-6/+51
pairs in backwards NextPosition.
2021-07-05Feature [feature-requests:#1408] Check both bytes of potential DBCS characterZufu Liu1-7/+60
before treating as a character.
2021-07-12Add support for benchmarks and Russian text in the unit tests.Neil1-0/+31
2021-07-11Add search tests with different encodings, case-matching options, and ↵Neil1-4/+189
directions.
2021-07-03Feature [feature-requests:#1408] Simplify code, remove IsDBCSTrailByteInvalid.Zufu Liu1-11/+0
Drop temporary test for IsDBCSTrailByteNoExcept.
2021-07-03Feature [feature-requests:#1408] Use positive IsDBCSTrailByteNoExcept functionZufu Liu1-0/+12
instead of negated IsDBCSTrailByteInvalid.
2021-07-02Feature [feature-requests:#1408] Treat valid DBCS lead byte followed by invalidZufu Liu1-0/+20
trail byte as single byte.
2021-07-01Add searching test cases for multi-byte encodingNeil1-11/+55
2021-06-21Add tests for CharacterCategoryMap, RESearch, and Document.Zufu Liu1-0/+59