aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
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-03-08Bug [#2403]. Add SC_AUTOCOMPLETE_SELECT_FIRST_ITEM.Jiří Techet1-0/+22
This option always selects the first item in the autocompletion list.
2024-02-27Restore change history to the extent possible when restoring undo history.Neil1-12/+129
2024-02-09Implement API to read and write undo history from applications.Neil1-0/+76
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-05Add SCI_SELECTIONFROMPOINT for modifying multiple selections.Neil1-3/+36
2023-11-05Add SCI_CHANGESELECTIONMODE to simplify selection mode manipulation.Neil1-22/+25
2023-11-05Add SCI_SETMOVEEXTENDSSELECTION to simplify selection mode manipulation.Neil1-0/+19
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-05Extract selectionRepresentation so it can be used in other test classes.Neil1-9/+10
2023-11-05Update unittest method names to work with Python 3.12.Neil2-46/+46
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-29Bug [#2078]. Fix rectangular selections with SCI_MOVESELECTEDLINESUP andNeil1-0/+14
SCI_MOVESELECTEDLINESDOWN.
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-26Add test for VCHome method.Neil1-0/+11
2023-10-26Use raw strings and extra escapes to fix "SyntaxWarning: invalid escape ↵Neil1-10/+10
sequence".
2023-10-26Update unittest method names to work with Python 3.12.Neil1-1028/+1028
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.
2023-10-04Significantly reduce memory used for deleting contiguous ranges backwards.Neil1-3/+3
Compresses sequences of same item in vectors by adding a count field. Fixes Notepad++ issue 13442. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13442
2023-10-04Preparatory changes for fix in next commit. Does not change Scintilla behaviour.Neil1-0/+49
Add tests for contiguous deletions in forward and backward directions. Use symbolic edition values. Rename InsertionSpan to ChangeSpan and insertions to changes as holds both insertions and deletions. Add ChangeStack::Check. Add comments.
2023-06-25Strip line end white-space.Neil1-2/+2
2023-03-15Fix some warnings from ruff.Neil5-24/+25