Skip to content

Commit c02c43f

Browse files
committed
Update tests
1 parent 9da14b9 commit c02c43f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

testcrate/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ mod tests {
8888
assert_eq!(version, "Lua 5.3");
8989
#[cfg(feature = "lua54")]
9090
assert_eq!(version, "Lua 5.4");
91+
#[cfg(feature = "lua55")]
92+
assert_eq!(version, "Lua 5.5");
9193
}
9294
}
9395

@@ -97,15 +99,15 @@ mod tests {
9799
let state = luaL_newstate();
98100
let ret = luaL_loadstring(state, c"😀 = '🌚︎'".as_ptr());
99101

100-
#[cfg(feature = "lua54")]
102+
#[cfg(any(feature = "lua54", feature = "lua55"))]
101103
{
102104
assert_eq!(ret, 0);
103105
assert_eq!(lua_pcall(state, 0, 0, 0), 0);
104106
lua_getglobal(state, c"😀".as_ptr());
105107
assert_eq!(to_string(state, -1), "🌚︎");
106108
}
107109

108-
#[cfg(not(feature = "lua54"))]
110+
#[cfg(not(any(feature = "lua54", feature = "lua55")))]
109111
assert_ne!(ret, 0);
110112
}
111113
}

0 commit comments

Comments
 (0)