Add tests for binop lookup table operdering

This commit is contained in:
Richard Feldman 2023-03-29 17:07:25 -04:00
parent 80c0978ecb
commit 7ade0b5a12
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -256,7 +256,7 @@ mod tests {
fn index_is_binop_u8(iter: impl Iterator<Item = BinOp>, table_name: &'static str) { fn index_is_binop_u8(iter: impl Iterator<Item = BinOp>, table_name: &'static str) {
for (index, op) in iter.enumerate() { 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);
} }
} }