mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-20 12:05:39 +00:00
Add tests for binop lookup table operdering
This commit is contained in:
parent
80c0978ecb
commit
7ade0b5a12
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue