浏览代码

tests: Add silly case for pushable implicit construction

Ole 9 年之前
父节点
当前提交
dad6cac227
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      tests/types.cpp

+ 9 - 0
tests/types.cpp

@@ -137,3 +137,12 @@ TEST_CASE("Boolean") {
 	REQUIRE(luwra::push(state, value) == 1);
 	REQUIRE(luwra::read<bool>(state, -1) == value);
 }
+
+TEST_CASE("Pushable") {
+	luwra::StateWrapper state;
+
+	luwra::Pushable pushable(1337);
+	REQUIRE(luwra::push(state, pushable) == 1);
+
+	REQUIRE(luwra::read<int>(state, -1) == 1337);
+}