aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit
AgeCommit message (Collapse)AuthorFilesLines
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
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.
2014-05-21Updated to current version of Catch as fixes issues reported by undefinedNeil1-555/+398
behaviour sanitizer.
2014-05-15Don't try to use sanitizers on OS X as not built into Clang.Neil Hodgson1-2/+5
2014-05-15Support Clang on Linux and turn on the address and undefined behaviourNeil1-1/+6
sanitizers.
2014-05-15Update Catch unit testing framework to current build 43 as it avoids someNeil1-1989/+3048
warnings from Clang.
2014-01-14Avoid warnings from cppcheck for testing code.Neil1-0/+2
2013-11-18Added necessary header.Unknown1-1/+2
2013-11-18Add some tests for CellBuffer.Neil4-1/+152
2013-11-18Add some tests for DecorationList.Neil2-1/+45
2013-11-17Added tests for Decoration.Neil4-2/+52
2013-11-17Switch unit tests to Catch framework.Neil13-1022/+8833
2013-04-19Using std::fill instead of a loop is much faster. As much as 4x on a large ↵nyamatongwe4-0/+8
block.
2013-04-15Update tests for last change to RunStyles as it no longer throws in FillRange.nyamatongwe1-5/+1
2013-04-15RunStyles can be corrupted by filling 0 length ranges and ranges that go ↵nyamatongwe1-0/+18
past end so throw std::invalid_argument exceptions for these conditions. Provide a Check method to validate the consistency of a RunStyles and throw std::runtime_error if corruption is detected.
2012-09-12Fix bug where removing all characters from indicator at end of document didnyamatongwe1-0/+31
not remove that run causing iteration over the indicator to hang.
2012-05-29add CharClassifier::GetCharsOfClassMook2-1/+111
add SCI_GETWORDCHARS(<unused>, stringresult chars) command to get word chars add SCI_GETWHITESPACECHARS(<unused>, stringresult chars) to get whitespace chars add SCI_GETPUNCTUATIONCHARS(<unused>, stringresult chars) to get punctutation also add tests for {Set,Get}{Word,Whitespce,Punctuation}Chars, CharClassifier