summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-28 15:07:14 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-28 15:07:14 +0100
commita61c702d91d7444ce0bb094ddccc70f72416500b (patch)
tree8d5a47c73666ee2b710a7a34c0c392b728bda45b /tests
parentf44d36b05e43cabde31aeaba5d25fded140345a1 (diff)
Added WebAssembly for C++ implementation of Diff
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile3
-rw-r--r--tests/test-diff.cpp28
2 files changed, 30 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index c4109d5..0347210 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -17,7 +17,8 @@ UNITTESTS=test-config.cpp \
test-storage.cpp \
test-compiledsql.cpp \
test-qrcode.cpp \
- test-whiteboard.cpp
+ test-whiteboard.cpp \
+ test-diff.cpp
CXXFLAGS+=\
-I/usr/src/googletest/googletest/include \
diff --git a/tests/test-diff.cpp b/tests/test-diff.cpp
new file mode 100644
index 0000000..b6b703a
--- /dev/null
+++ b/tests/test-diff.cpp
@@ -0,0 +1,28 @@
+#include <gtest/gtest.h>
+
+#include <filesystem>
+#include <string>
+#include <system_error>
+
+#include "libreichwein/file.h"
+
+#include "diff.h"
+
+namespace fs = std::filesystem;
+using namespace Reichwein;
+
+class DiffTest: public ::testing::Test
+{
+protected:
+ DiffTest(){
+ }
+
+ ~DiffTest(){
+ }
+};
+
+TEST_F(DiffTest, constructor)
+{
+ Diff diff{};
+}
+