aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2 daysimplicitly instantiate RunStyles: support ptrdiff_t if it has the same ↵Robin Haberkorn1-1/+0
storage size as int, but does *not* alias it * This is the case e.g. on NetBSD 10 for ARMv6 where Sci::Position == ptrdiff_t == long int, but obviously for other platforms as well, where it causes "invalid conversion" and "undefined symbol" errors. Scintilla was testing for aliasability by comparing the storage size with sizeof() or PTRDIFF_MAX == INT_MAX at the preprocessor level. This was fundamentally flawed. * In LineVector<T>::InsertLines() we are now using the C++17 construct std::is_convertible_v<From*,To*> instead. * We need RunStyles<ptrdiff_t> as well on the affected platforms. AFAIK this is impossible to test for in a constant expression that can be used with the preprocessor. A workaround has been added previously for Haiku: https://groups.google.com/g/scintilla-interest/c/xPXquJUIXo8/m/BLXBpTTgBwAJ The workaround is not very robust, as probably nobody guarantees that ptrdiff_t never aliases on Haiku. If it does, you will suddenly get errors about duplicate template instantiations. Quite possibly, the explicit instantiations of RunStyles were wrong on certain 32-bit Linux variants as well. * We could have tried to explicitly instantiate RunStyles for all scalar types that could possibly be behind ptrdiff_t. Unfortunately, it would result in "possible loss of data" warnings on MSVC. Instead, we now implicitly instantiate RunStyles.
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-05-12Add SCI_AUTOC{G,S}ETIMAGESCALE and implement for Qt and GTK.orbitalquark1-0/+5
2025-03-27Add performance test for case-insensitive DBCS searching.Neil1-0/+22
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-01Serialize selection type and ranges with SCI_GETSELECTIONSERIALIZED andNeil1-0/+33
SCI_SETSELECTIONSERIALIZED.
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-07-28Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and itsNeil1-0/+19
nesting depth.
2024-07-27Feature [feature-requests:#1530]. SCI_SETCOPYSEPARATOR sets string to separateNeil1-3/+16
parts of multiple selection when copied.
2024-07-15Add copy and paste tests for rectangular- and multiple-selection and line-endNeil1-0/+47
conversion.
2024-07-03Feature [feature-requests:#1523]. SCI_AUTOCSETSTYLE sets autocompletion font.Martijn Laan1-0/+4
2024-06-20Feature [feature-requests:#1518]. Cherry pick SCI_CUTALLOWLINE from isscint.Martijn Laan1-0/+13
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