Explorar o código

tests: Add skeleton for user type tests

Ole Krüger %!s(int64=10) %!d(string=hai) anos
pai
achega
a082a4fe2a
Modificáronse 2 ficheiros con 17 adicións e 1 borrados
  1. 1 1
      Makefile
  2. 16 0
      tests/usertypes.cpp

+ 1 - 1
Makefile

@@ -6,7 +6,7 @@ EXEC            := exec
 # Test artifacts
 TEST_DIR        := tests
 TEST_OUT        := $(TEST_DIR)/all
-TEST_SRCS       := all.cpp types.cpp stack.cpp functions.cpp
+TEST_SRCS       := all.cpp types.cpp stack.cpp functions.cpp usertypes.cpp
 TEST_DEPS       := $(TEST_SRCS:%.cpp=$(TEST_DIR)/%.d)
 TEST_OBJS       := $(TEST_SRCS:%.cpp=$(TEST_DIR)/%.o)
 

+ 16 - 0
tests/usertypes.cpp

@@ -0,0 +1,16 @@
+#include "catch.hpp"
+
+#include <lua.hpp>
+#include <luwra.hpp>
+
+// TODO: Test construction in Lua
+
+// TODO: Test construction via Value<T&>
+
+// TODO: Test construction via Value<T*>
+
+// TODO: Test gc-hook for T&
+
+// TODO: Test gc-hook for T*
+
+// TODO: Test property access