소스 검색

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);
+}