From 24b6498774de61cbd4c6b5a1f48a55c3e4678ca6 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 19 Aug 2023 17:27:42 -0500 Subject: [PATCH] Rename version global test --- src/lune/globals/version.rs | 5 +++++ src/tests.rs | 6 ++---- tests/globals/{version.luau => _VERSION.luau} | 0 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 src/lune/globals/version.rs rename tests/globals/{version.luau => _VERSION.luau} (100%) diff --git a/src/lune/globals/version.rs b/src/lune/globals/version.rs new file mode 100644 index 0000000..c073bad --- /dev/null +++ b/src/lune/globals/version.rs @@ -0,0 +1,5 @@ +use mlua::prelude::*; + +pub fn create(lua: &'static Lua) -> LuaResult> { + lua.create_table() +} diff --git a/src/tests.rs b/src/tests.rs index af56722..5380e5d 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -79,13 +79,11 @@ create_tests! { require_siblings: "require/tests/siblings", global_g_table: "globals/_G", - // TODO: Uncomment this test, it is commented out right - // now to let CI pass so that we can make a new release - // global_coroutine: "globals/coroutine", + global_version: "globals/_VERSION", + global_coroutine: "globals/coroutine", global_pcall: "globals/pcall", global_type: "globals/type", global_typeof: "globals/typeof", - global_version: "globals/version", serde_compression_files: "serde/compression/files", serde_compression_roundtrip: "serde/compression/roundtrip", diff --git a/tests/globals/version.luau b/tests/globals/_VERSION.luau similarity index 100% rename from tests/globals/version.luau rename to tests/globals/_VERSION.luau