From 47d5fe3df1e5dea89070b0bdc8b267e0aa3e5ec0 Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Tue, 3 Oct 2023 12:29:47 -0500 Subject: [PATCH] :white_check_mark: test: check how big Instruction is --- lunar_wave_vm/src/tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lunar_wave_vm/src/tests.rs b/lunar_wave_vm/src/tests.rs index 4dfb972..6941526 100644 --- a/lunar_wave_vm/src/tests.rs +++ b/lunar_wave_vm/src/tests.rs @@ -425,7 +425,7 @@ fn tailcall () { } #[test] -fn value_size () { +fn sizes () { // Per https://www.lua.org/doc/jucs05.pdf, // "The Implementation of Lua 5.0", // @@ -479,4 +479,6 @@ fn value_size () { let expected = 8; assert! (sz == expected, "{sz} != {expected}"); } + + assert_eq! (size_of:: (), 8); }