test_unsigned_int.cpp 492 B

123456789101112131415161718
  1. // Copyright Daniel Wallin 2009. Use, modification and distribution is
  2. // subject to the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include "test.hpp"
  5. #include <luabind/luabind.hpp>
  6. void test_main(lua_State* L)
  7. {
  8. DOSTRING(L, "x = 4294967295");
  9. unsigned int x = luabind::object_cast<unsigned int>(
  10. luabind::globals(L)["x"]);
  11. unsigned int y = 4294967295UL;
  12. TEST_CHECK(x == y);
  13. }