aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit
AgeCommit message (Collapse)AuthorFilesLines
2025-07-03Feature [feature-requests:#1563]. Move main range in selection serialized form.masterZufu Liu1-12/+16
Avoid processing characters multiple times by relying on from_chars munching digit characters instead of searching for delimiters.
2025-03-08Define constants for UTF-8 and UTF-16 implementation for clarity.Neil1-0/+33
Add tests to check that inverted conversions yield the original value.
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-23Silence some warnings in test code.rel-5-5-5Neil3-17/+24
2025-02-23Feature [feature-requests:#1540]. Remove unused variable.Neil1-17/+0
2025-02-05Simplify SelectionRange::Intersect and add SelectionRange constructor fromNeil1-0/+32
positions without virtual space. Add unit tests.
2025-02-04Use Lexilla.ruleset from sibling lexilla directory instead of path on myNeil1-1/+2
personal machine.
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-02-04Add overload of UnicodeFromUTF8 that takes a string_view.Neil1-0/+5
2025-02-01Implement serialization of Selection to and from strings.Neil1-0/+112
Requires std::from_chars to be available.
2025-01-31Update comment about modules tested.Neil1-17/+11
2025-01-31Add default basic constructor and operator!= to SelectionPosition to ease use.Neil4-0/+154
Use default member initializer, constexpr for constructors and equality operators and <, [[nodiscard]] for comparison operators. Add simple unit tests for Selection. Not trying to be exhaustive here, just start the process of adding tests.
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.Neil4-0/+4
2024-04-04Update Catch testing framework from v2.13.7 to v2.13.10.Neil1-61/+78
2024-03-09Bug [#2432]. Fix redo failure.Neil1-0/+26
2024-02-27Restore change history to the extent possible when restoring undo history.Neil1-12/+129
2024-02-10Add missing header for test.Neil Hodgson1-0/+1
2024-02-09Avoid overhead of extra start actions that delimited user operations. Now reliesNeil1-1/+1
on mayCoalesce flag to indicate that a user operation is complete when false.
2024-02-02Implement ScaledVector to store undo positions and lengths using less memory inNeil1-0/+50
most cases. Often reduces memory use by around 50% for 32-bit builds and 75% for 64-bit builds as it may use 2-bytes for a position or length instead of 4 or 8 bytes.
2024-02-01Store undo text in ScrapStack, a single allocation instead of one allocation perNeil1-22/+41
step. This saves about 50% for a long sequence of single byte actions.
2024-02-01Add UndoAction class as internal type for undo actions and make Action a structNeil1-21/+21
that is used for reporting undo steps to Document. This will allow further minimization of undo memory use.
2024-02-01Move UndoHistory into its own module that is accessible from CellBuffer andNeil4-0/+4
tests but hidden from most of Scintilla. Access through std::unique_ptr.
2024-02-01Protect CATCH_CONFIG_WINDOWS_CRTDBG to only be active on Windows to allowNeil1-0/+2
building UnitTester.cxx on macOS.
2024-01-30Avoid warnings in unit tests with const, nullptr, [[nodiscard]], initialisation,Neil10-30/+34
and unnamed namespace.
2024-01-29Add tests for an undo history with only container actions and 2 levels of undoNeil1-3/+39
group nesting.
2024-01-29Add tests for container undo actions, checking that they coalesce when required.Neil1-1/+68
2024-01-02Fix warnings in test case code mostly by adding const.Neil7-70/+73
2024-01-02Add tests for undo of Document.Neil1-0/+81
2023-12-30Add tests for undo history, coalescing, grouping, tentative.Neil1-0/+216
2023-12-21Bug [#2405]. Avoid character fragments in regular expression search results.Zufu Liu2-0/+41
2023-12-14Bug [#2405]. Fix regular expression bug in reverse direction where shortenedZufu Liu1-1/+1
match returned.
2023-12-12Slight speed up by allowing unitTest.o to compile in parallel with others.Zufu Liu1-1/+1
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-09Allow parallel building with makefile.Neil1-19/+25
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-21Bug [#2413]. Fix regular expression search failure.Zufu Liu1-0/+11
2023-11-07Feature [feature-requests:#1501] Use string_view and constexpr in unit tests.Zufu Liu3-119/+122
2023-11-02Feature [feature-requests:#1500] Remove match text retrieval from MatchOnLinesZufu Liu1-7/+10
as it is redone in SubstituteByPosition. Replace RESearch::pat and RESearch::GrabMatches with retrieving matches as needed in SubstituteByPosition.
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-26Implement LineEnd method in CellBuffer as it is a basic function and only usesNeil1-0/+52
CellBuffer fields. Declare LineEnd noexcept as it should never throw and that allows methods calling it to also be noexcept. Call LineEndPosition to simplify Editor::LineSelectionRange.
2023-10-19Fix regex test failures on Unix by setting global locale.Zufu Liu1-0/+12
2023-10-18Remove unused values that caused warnings.Neil Hodgson1-3/+0
2023-10-18Fix missing include which caused compilation failure on macOS.Neil Hodgson1-0/+1
2023-10-15Bug [#2405]. Fix incorrect substitution when searching for a regular expressionZufu Liu1-0/+46
backwards.
2023-10-15Use std::array for regex match positions as it will simplify copying.Neil1-0/+1
This change set does not change behaviour.