diff options
author | nyamatongwe <devnull@localhost> | 2011-02-01 15:08:37 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-02-01 15:08:37 +1100 |
commit | 9ec1eb93884b64f41cc0b369c9215a0b010ea850 (patch) | |
tree | e2a309153615d7f6c28c8c7405d5ee1d239d1188 /test/unit/unitTest.cxx | |
parent | a4258495cde43155b55a91fd46299394ca957d60 (diff) | |
download | scintilla-mirror-9ec1eb93884b64f41cc0b369c9215a0b010ea850.tar.gz |
Unit tests for Scintilla data structures.
Diffstat (limited to 'test/unit/unitTest.cxx')
-rw-r--r-- | test/unit/unitTest.cxx | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test/unit/unitTest.cxx b/test/unit/unitTest.cxx new file mode 100644 index 000000000..e1bb7bad2 --- /dev/null +++ b/test/unit/unitTest.cxx @@ -0,0 +1,50 @@ +// Unit Tests for Scintilla internal data structures + +/* + Currently tested: + SplitVector + Partitioning + ContractionState + + To do: + RunStyles + Decoration + DecorationList + PerLine * + CellBuffer * + Range + StyledText + CaseFolder ... + Document + RESearch + Selection + UniConversion + Style + + lexlib: + Accessor + LexAccessor + CharacterSet + OptionSet + PropSetSimple + StyleContext + WordList +*/ + +#include <stdio.h> + +#include "Platform.h" + +#include <gtest/gtest.h> + +// Needed for PLATFORM_ASSERT in code being tested + +void Platform::Assert(const char *c, const char *file, int line) { + fprintf(stderr, "Assertion [%s] failed at %s %d\n", c, file, line); + abort(); +} + +int main(int argc, char **argv) { + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} |