test: check how big Instruction is

main
_ 2023-10-03 12:29:47 -05:00
parent 3698feeb90
commit 47d5fe3df1
1 changed files with 3 additions and 1 deletions

View File

@ -425,7 +425,7 @@ fn tailcall () {
} }
#[test] #[test]
fn value_size () { fn sizes () {
// Per https://www.lua.org/doc/jucs05.pdf, // Per https://www.lua.org/doc/jucs05.pdf,
// "The Implementation of Lua 5.0", // "The Implementation of Lua 5.0",
// //
@ -479,4 +479,6 @@ fn value_size () {
let expected = 8; let expected = 8;
assert! (sz == expected, "{sz} != {expected}"); assert! (sz == expected, "{sz} != {expected}");
} }
assert_eq! (size_of::<crate::instruction::Instruction> (), 8);
} }