aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit
AgeCommit message (Collapse)AuthorFilesLines
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
2011-06-07Testing RunStyles::AllSame and RunStyles::AllSameAs.nyamatongwe1-0/+18
2011-06-07Add tests for bug found in #3291579 and for new RunStyles::Findnyamatongwe2-0/+119
and ContractionState::HiddenLines methods.
2011-02-13Avoid unnecessary relinks on Windows.nyamatongwe1-2/+4
2011-02-13Added Merge method to SparseState to make it possible to detect significantnyamatongwe1-1/+100
changes in lexers which will require styling beyond the end of the current range.
2011-02-10Only append a state if the value differs from the last current value.nyamatongwe1-0/+7
2011-02-10New class SparseState for storing lexer state that may notnyamatongwe1-0/+138
change on most lines.
2011-02-03Added some coverage testing.nyamatongwe1-1/+5
2011-02-01Added runStyles tests.nyamatongwe1-1/+1
2011-02-01Unit tests for Scintilla data structures.nyamatongwe8-0/+850