From ca109f4634ef9c9efce81bb3ff924a91e6d66c1a Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Mon, 22 Jun 2009 23:27:45 +0200 Subject: [PATCH] Fix builtin converter test. All converters need both conversion stages. --- test/test_builtin_converters.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_builtin_converters.cpp b/test/test_builtin_converters.cpp index ec5d734..321ddfd 100644 --- a/test/test_builtin_converters.cpp +++ b/test/test_builtin_converters.cpp @@ -8,7 +8,9 @@ #define LUABIND_TEST_BUILTIN(type, value) \ default_converter().to(L, value); \ - TEST_CHECK(default_converter().from(L, -1) == value); \ + default_converter BOOST_PP_CAT(cv, __LINE__); \ + TEST_CHECK(BOOST_PP_CAT(cv, __LINE__).compute_score(L, -1) >= 0); \ + TEST_CHECK(BOOST_PP_CAT(cv, __LINE__).from(L, -1) == value); \ lua_pop(L, 1) void test_main(lua_State* L) -- 2.11.4.GIT