aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit
AgeCommit message (Collapse)AuthorFilesLines
2022-02-10Replace "OS X' with "macOS".Neil2-5/+5
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-10-17Update Catch2 to 2.13.7 so that it works on Ubuntu 21.10.Neil1-175/+253
2021-10-03Feature [feature-requests:#1417] Add DEL (0x7F) to set of space characters.Neil1-1/+1
2021-09-23Fix comment.rel-5-1-2Neil1-1/+1
2021-09-15Move colour mixing implementations into implementation file.Neil4-0/+236
Avoids some warnings but drops constexpr. Use MixedWith in PlatWin for GDI instead of local implementation. Add unit tests for Geometry.
2021-08-25Allow SCI_HIDELINES to hide the first line or all lines.Neil1-0/+15
2021-08-24Remove line end white space.Neil2-4/+4
2021-07-20Add OPTIMIZATION variable so caller can choose optimization level.Neil2-3/+7
Drop lexlib from include path as no longer part of Scintilla. For clang on Windows, turn off deprecated function warning and disable sanitizers as they are slow.
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-11Avoid some incorrect compiler warnings for out-of-bounds access by providingNeil1-3/+3
extra bytes.
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 encodingNeil4-11/+61
2021-06-21Fix some warnings in unit tests.rel-5-1-0Zufu Liu5-24/+22
2021-06-21Add tests for CharacterCategoryMap, RESearch, and Document.Zufu Liu6-0/+218
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil12-161/+166
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-09Add @file <filename> comments to follow convention.Neil12-13/+36
Fix incorrect filename comments. Normalize Qt code to use #endif /* X */ insetad of #endif // X.
2021-05-06Fix building unit tests in Visual C++.Neil1-6/+4
2021-04-05Extract CharClassify::cc as CharacterClass and change to enum class.Neil1-14/+14
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil12-0/+12
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil12-24/+12
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil12-0/+12
2021-03-16Convert Platform from a class to a namespace. Does not change callers.Neil1-2/+2
Make Assert, DebugPrintf, and similar noexcept so they can be used in noexcept methods and they don't throw.
2021-02-13Update Catch2 so that unit tests will build on Apple Silicon Macs.Neil1-3762/+9631
2020-11-10Remove WordList from testing as that is now part of Lexilla.Neil4-4/+0
2021-01-29Remove Lexilla files from ScintillaNeil2-321/+0
2020-05-04Feature [feature-requests:1347]. Add methods to insert multiple partitions.Neil1-0/+26
2020-05-03Feature [feature-requests:1347]. Add InsertLines method to PerLine interface andNeil4-2/+368
all implementations. This will allow insertion of lines in batches in a future change set. Added tests for PerLine implementations.
2020-05-02InsertEmpty now returns a pointer to the newly added elements to allow caller toNeil1-0/+21
efficiently set those elements.
2019-12-02Add SparseVector::DeleteRange for efficiently removing ranges.Neil1-0/+106
2019-12-02Add SparseVector::IndexAfter for efficiently finding elements in a range.Neil1-0/+17
2019-12-01Allow setting value at end of a SparseVector.Neil2-20/+51
Change representation of SparseVector in tests so last value can be seen.
2019-12-01Fix a bug with deleting the first element in SparseVector that left an extraNeil2-4/+20
empty partition. Add extra checking to Partitioning and turn on checking for UnitTester.
2019-12-01Improve debugging by fixing visualization of SplitVector, adding a visualizationNeil1-10/+23
for Partitioning, and removing a layer from unique_ptr.
2019-09-30Feature [feature-requests:#1305] Optimize setting up keyword lists in lexers.Zufu Liu1-0/+15
Avoids splitting and sorting the input twice.
2019-04-28Switch from /std:c++latest to /std:c++17 as Visual C++ 2019 now includes someNeil2-2/+5
C++20 features.
2019-04-28Add UniqueString.cxx as UniqueStringCopy no longer defined in header.Neil1-0/+1
2019-04-05Move UniqueStringCopy into its own source file UniqueString.cxx to hide theNeil2-2/+4
implementation.
2018-07-10Optional indexing of line starts in UTF-8 documents by UTF-32 code points andNeil1-0/+288
UTF-16 code units added.
2018-07-06Fix a shadowed variable.Neil1-2/+2
2018-05-31Allow std::unique_ptr to be used more widely.Neil3-0/+3
2018-05-18Add <vector> to files that include Platform.h as likely needed in future.Neil4-0/+4