diff --git a/tests/Conformance.test.cpp b/tests/Conformance.test.cpp index cd9a2f12..0a9d1f77 100644 --- a/tests/Conformance.test.cpp +++ b/tests/Conformance.test.cpp @@ -1355,9 +1355,11 @@ TEST_CASE("UserdataApi") auto dtor = [](lua_State* l, void* data) { dtorhits += *(int*)data; }; - bool dtorIsNull = lua_getuserdatadtor(L, 42) == nullptr; CHECK(dtorIsNull); + bool dtorIsNull = lua_getuserdatadtor(L, 42) == nullptr; + CHECK(dtorIsNull); lua_setuserdatadtor(L, 42, dtor); - bool dtorIsSet = lua_getuserdatadtor(L, 42) == dtor; CHECK(dtorIsSet); + bool dtorIsSet = lua_getuserdatadtor(L, 42) == dtor; + CHECK(dtorIsSet); // light user data int lud;