aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/unitTest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/unitTest.cxx')
-rw-r--r--test/unit/unitTest.cxx50
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();
+}