diff options
author | nyamatongwe <unknown> | 2011-02-01 15:08:37 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-02-01 15:08:37 +1100 |
commit | cebe1906c3f42f093c497118d1048057ab4aec3a (patch) | |
tree | 74986c53e261fea310243f047922f565a53888d5 /test/unit/unitTest.cxx | |
parent | 3d028ac24af1f6d1183717c55d65e291836c37d9 (diff) | |
download | scintilla-mirror-cebe1906c3f42f093c497118d1048057ab4aec3a.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(); +} |