]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/test.qh
Move test to /lib
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / test.qh
diff --git a/qcsrc/lib/test.qh b/qcsrc/lib/test.qh
new file mode 100644 (file)
index 0000000..d1f5357
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef TEST_H
+#define TEST_H
+
+#include "../common/util.qh"
+
+#define TEST_Check(cond) do { if(!(cond)) TEST_Fail(#cond); } while(0)
+
+void TEST_OK();
+void TEST_Fail(string cond);
+
+float TEST_RunAll();
+float TEST_Run(string test);
+#endif