aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit
AgeCommit message (Collapse)AuthorFilesLines
2018-07-10Backport: Optional indexing of line starts in UTF-8 documents by UTF-32 code ↵Neil1-0/+288
points and UTF-16 code units added. Converted instances of C++17 std::string_view to C++11. Also used const_casts where appropriate to fix compile errors. Backport of changeset 7063:0d5edc93e280.
2018-07-06Backport: Fix a shadowed variable.Neil1-2/+2
Backport of changeset 7060:2523ae8c5676.
2018-05-31Backport: Allow std::unique_ptr to be used more widely.Neil3-0/+3
Backport of changeset 7008:1f95757fa242.
2018-05-25Backport: Add <vector> to files that include Platform.h as likely needed in ↵mitchell4-0/+6
future. Backport of changeset 6959:b534742f5fa5.
2018-04-20Backport: Feature [feature-requests:#1215]. Fix forwarding reference warnings.Neil1-0/+16
Backport of changeset 6711:8d202ec5a734.
2018-05-05Backport: Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than ↵mitchell3-3/+3
2 GigaBytes. This option is provisional and experimental. Backport of changesets 6696:9729ff36c5b1 and 6723:cffe824ab55e. Also added '#include <cstddef>' to top of src/RESearch.cxx to fix 32-bit build error.
2018-03-28Backport: Templatize decorations to allow 32-bit or 64-bit positions.Neil1-2/+2
Backport of changeset 6693:7247d1c9c27f.
2018-05-05Backport: Split decorations into interface and implementation.mitchell1-30/+30
Backport of changeset 6658:693e737f3155.
2018-03-27Backport: Return a FillResult struct from RunStyles::FillRange instead of ↵Neil2-39/+42
modifying arguments as that is clumsy when converting types. Backport of changeset 6657:43515e7709c6.
2018-03-27Backport: Use an interface for ContractionState so that there can be differentNeil1-80/+80
implementations of that interface. Backport of changeset 6656:ffa2a06d3987.
2018-03-26Backport: Update Catch from 1.0 build 47 to 2.0.1 and modify UnitTester.cpp ↵Neil2-6090/+9371
to suit. 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. Backport of changeset 6653:0d68633e33ce.
2018-03-26Backport: Avoid warnings about ignored diagnostic with Clang.Neil1-0/+2
Backport of changeset 6652:4d04a4cc73af.
2018-03-25Backport: Feature [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. Backport of changeset 6648:5f2c128ad6dc.
2018-05-05Backport: Feature [feature-requests:#1212]. Move Unicode conversions into ↵mitchell3-47/+27
UniConversion. Move Unicode conversion functions UnicodeFromUTF8 and UTF8FromUTF32Character into UniConversion. Backport of changeset 6645:463fa6965d9a.
2018-05-05Backport: Feature [feature-requests:#1211]. Use pre-computed table for ↵mitchell1-60/+107
UTF8BytesOfLead. Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests. Backport of changeset 6643:ebbb4e5aaf93.
2018-03-21Backport: Include header needed for ptrdiff_t.Mitchell Foral7-0/+7
Backport of changeset 6635:f59121877e75.
2018-03-20Backport: Add unit tests for UniCoversion.Neil5-3/+270
Backport of changeset 6631:dab8d8906cfb.
2018-03-19Backport: Fix warning from MSVC 64-bit.Neil1-2/+2
Backport of changeset 6630:9a68a8f20de9.
2018-03-16Backport: Remove line-end white space.Neil6-7/+7
Backport of changeset 6625:2dd6b8049c4e.
2018-02-02Backport: Implement SC_DOCUMENTOPTION_STYLES_NONE.Neil1-1/+1
Backport of changeset 6448:431b814a54a6.
2018-02-01Backport: Templatize RunStyles so it can be over ranges of different types ↵Neil1-1/+1
and contain different style types. Currently only instantiated over <int, int>. Backport of changeset 6445:89d992f380a1.
2018-02-01Backport: Templatize Partitioning so it can hold different types.Neil1-2/+2
Backport of changeset 6444:1bd57324aa36.
2018-01-21Backport: Match variable types to method so will build if switched to 64-bit.Neil1-2/+2
Backport of changeset 6430:754319cc6aaa.
2018-01-21Backport: Fix namespace so can build inside Visual C++.Neil1-0/+4
Backport of changeset 6429:5ab7cff298f5.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil12-0/+24
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
2017-07-17Backport: Ensures tests build after change set 6352.Neil1-0/+2
Backport of changeset 6353:90e01a286914.
2017-06-10Backport: Avoid warnings when compiling unit tests with recent GCC.Neil1-0/+8
Backport of changeset 6305:f2f32d58bcd8.
2017-06-09Backport: Avoid signed safety warnings from GCC 7.Neil1-2/+2
Backport of changeset 6296:c2c63e649256.
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
2017-04-03Fix test which was broken by encapsulation of revision 6195.Neil1-1/+1
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil8-9/+8
where it may be needed in the future.
2017-03-16Fix use-after-free in fold tags when top line folded then new top line inserted.Neil1-0/+12
In SparseVector, string inserted at start then NULL inserted at start.
2017-02-04Ensure std::cerr is available in automated tests.Neil1-0/+1
2016-10-18Add SparseVector template as a new data structure for storing per-line dataNeil1-0/+185
which is 0 or NULL for most lines.
2016-10-18Visual Studio project for running unit tests makes it easier to debug them.Neil3-0/+218
Debugging visualizer for SplitVector helps understand state of objects.
2016-10-08Fix minor warnings in unit tests from MSVC 64-bit.Neil4-27/+27
2016-09-30Enable SplitVector to store objects by using std::copy to copy elements insteadNeil1-0/+104
of memmove and memcpy. This allows SplitVector<std::string> to work.
2016-09-07Add test cases for WordList::InListAbbreviated.oirfeodent1-0/+16
2016-09-07Add InListAbridged to WordList.oirfeodent1-0/+22
2016-08-25Add unit tests for WordList class.Neil3-0/+34
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil6-0/+6
2015-07-04Unit tests need to see std::exception now.Neil3-0/+3
2014-12-22Avoid warning from cppcheck.Neil1-3/+2
2014-12-22Replace function UnicodeFromBytes with UnicodeFromUTF8 as they are exactly theNeil2-0/+45
same. Add unit tests for UnicodeFromUTF8.