aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit
AgeCommit message (Collapse)AuthorFilesLines
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
2018-05-14Use string_view for UniConversion functions.Neil1-24/+24
2018-05-13Include <string_view> in tests in case needed.Neil12-0/+14
2018-04-20Feature [feature-requests:#1215]. Fix forwarding reference warnings.Neil1-0/+16
2018-04-17Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than 2 GigaBytes.Neil3-3/+3
This option is provisional and experimental.
2018-03-28Templatize decorations to allow 32-bit or 64-bit positions.Neil1-2/+2
2018-03-30Reverted #6488 as Xcode clang 9.1 now likes --std=c++17.Neil Hodgson1-1/+0
2018-03-28Split decorations into interface and implementation.Neil1-30/+30
2018-03-27Return a FillResult struct from RunStyles::FillRange instead of modifyingNeil2-39/+42
arguments as that is clumsy when converting types.
2018-03-27Use an interface for ContractionState so that there can be differentNeil1-80/+80
implementations of that interface.
2018-03-26Update Catch from 1.0 build 47 to 2.0.1 and modify UnitTester.cpp to suit.Neil2-6090/+9371
Use #define for Catch to report memory leaks after main as the previous call to _CrtDumpMemoryLeaks was too early and listed a static allocation as a leak.
2018-03-26Avoid warnings about ignored diagnostic with Clang.Neil1-0/+2
2018-03-25Feature [feature-requests:#1213]. Clarify UTF8Classify.Zufu Liu1-31/+48
Use UTF8BytesOfLead to determine expected length early in function to quickly detect argument not long enough, invalid single bytes and invalid first trail then branching on length for more detailed checks.
2018-03-24Feature [feature-requests:#1212]. Move Unicode conversions into UniConversion.Zufu Liu3-47/+27
Move Unicode conversion functions UnicodeFromUTF8 and UTF8FromUTF32Character into UniConversion.
2018-03-24Update unit test Visual C++ builds to Visual C++ 2017 with /std:c++latestNeil2-12/+13
but also allowing std::auto_ptr for Catch.
2018-03-22Feature [feature-requests:#1211]. Use pre-computed table for UTF8BytesOfLead.Zufu Liu1-60/+107
Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests.
2018-03-21Include header needed for ptrdiff_t.Mitchell Foral7-0/+7
2018-03-20Change standard flag on MacOS as Xcode clang doesn't yet like c++17.Neil Hodgson1-1/+4
2018-03-20Add unit tests for UniCoversion.Neil5-3/+270
2018-03-19Fix warning from MSVC 64-bit.Neil1-2/+2
2018-03-16Remove line-end white space.Neil6-7/+7
2018-03-01Update to c++17 so make_unique is available.Neil1-1/+1
2018-02-02Implement SC_DOCUMENTOPTION_STYLES_NONE.Neil1-1/+1
2018-02-01Templatize RunStyles so it can be over ranges of different types and containNeil1-1/+1
different style types. Currently only instantiated over <int, int>.
2018-02-01Templatize Partitioning so it can hold different types.Neil1-2/+2
2018-01-21Match variable types to method so will build if switched to 64-bit.Neil1-2/+2
2018-01-21Fix namespace so can build inside Visual C++.Neil1-0/+4
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil12-0/+24
interfaces ILexer4 and IDocument.
2017-07-17Ensures tests build after change set 6352.Neil1-0/+2
2017-06-10Avoid warnings when compiling unit tests with recent GCC.Neil1-0/+8
2017-06-09Avoid signed safety warnings from GCC 7.Neil1-2/+2
2017-05-21Make SparseVector work with move-only types.Neil2-20/+66
Define UniqueString as a move-only string and use in a SparseVector for ContractionState. Remove SparseVector method specializations that are no longer needed.
2017-05-21Make SplitVector work with move-only types like unique_ptr.Neil5-6/+19
Provide InsertEmpty and both const and non-const reference returning operator[]. Add and fix comments.
2017-05-10Update unit test to match header change.Neil1-0/+1
2017-05-02Avoid explicit allocation in test.Neil1-12/+8
2017-04-29Use std::unique_ptr, std::vector, and move construction to simplify UndoHistoryNeil1-0/+1
and make it easier to modify. Remove out of date warning suppression.
2017-04-22Include <memory> for std::unique_ptr.Neil9-0/+9
2017-04-19Use =delete for unwanted functions.Neil1-2/+2