]> rtime.felk.cvut.cz Git - wvtest.git/blobdiff - c/t/wvtest.t.c
Add wvtest for C
[wvtest.git] / c / t / wvtest.t.c
diff --git a/c/t/wvtest.t.c b/c/t/wvtest.t.c
new file mode 100644 (file)
index 0000000..2f30eb9
--- /dev/null
@@ -0,0 +1,17 @@
+#include "wvtest.h"
+
+WVTEST_MAIN("wvtest tests")
+{
+    WVPASS(1);
+    WVFAIL(0);
+    WVPASSEQ(1, 1);
+    WVPASSNE(1, 2);
+    WVPASSLT(1, 2);
+}
+
+WVTEST_MAIN("wvtest string tests")
+{
+    WVPASSEQSTR("hello", "hello");
+    WVPASSNESTR("hello", "hello2");
+    WVPASSLTSTR("hello", "hello2");
+}