blah lua versions

This commit is contained in:
ThePhD 2019-05-29 19:31:52 -04:00
parent 5a4d7dca7f
commit 3dd617d33a
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
3 changed files with 12 additions and 7 deletions

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script.
// Generated 2019-05-29 20:53:05.788092 UTC
// This header was generated with sol v3.0.2 (revision 46a2b01)
// Generated 2019-05-29 23:31:18.215247 UTC
// This header was generated with sol v3.0.2 (revision 5a4d7dc)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script.
// Generated 2019-05-29 20:53:04.799735 UTC
// This header was generated with sol v3.0.2 (revision 46a2b01)
// Generated 2019-05-29 23:31:17.933001 UTC
// This header was generated with sol v3.0.2 (revision 5a4d7dc)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP

View File

@ -193,6 +193,7 @@ TEST_CASE("operators/default with pointers", "test that default operations still
lua.new_usertype<T>("T");
T test;
lua["t1"] = &test;
@ -201,15 +202,19 @@ TEST_CASE("operators/default with pointers", "test that default operations still
lua["t4"] = std::unique_ptr<T, no_delete>(&test);
lua.script("ptr_test = t1 == t2");
lua.script("ptr_unique_test = t1 == t3");
lua.script("unique_test = t3 == t4");
bool ptr_test = lua["ptr_test"];
bool ptr_unique_test = lua["ptr_unique_test"];
bool unique_test = lua["unique_test"];
REQUIRE(ptr_test);
REQUIRE(ptr_unique_test);
REQUIRE(unique_test);
#if SOL_LUA_VERSION > 502
lua.script("ptr_unique_test = t1 == t3");
bool ptr_unique_test = lua["ptr_unique_test"];
REQUIRE(ptr_unique_test);
#endif
}
TEST_CASE("operators/call", "test call operator generation") {