Kaynağa Gözat

tests: Add skeleton for user type tests

Ole Krüger 10 yıl önce
ebeveyn
işleme
a082a4fe2a
2 değiştirilmiş dosya ile 17 ekleme ve 1 silme
  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