From 7ade0b5a1201a18ac66d6a9ed95c0ab9292c99eb Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Wed, 29 Mar 2023 17:07:25 -0400 Subject: [PATCH] Add tests for binop lookup table operdering --- crates/compiler/module/src/called_via.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compiler/module/src/called_via.rs b/crates/compiler/module/src/called_via.rs index 025c26a16f..8fedf77404 100644 --- a/crates/compiler/module/src/called_via.rs +++ b/crates/compiler/module/src/called_via.rs @@ -256,7 +256,7 @@ mod tests { fn index_is_binop_u8(iter: impl Iterator, table_name: &'static str) { for (index, op) in iter.enumerate() { - assert_eq!(op as usize, index); + assert_eq!(op as usize, index, "{op} was found at index {index} in {table_name}, but it should have been at index {} instead.", op as usize); } }