spelling: precedence

pull/2690/head
Josh Soref 7 years ago
parent 05f684b4fc
commit 7771d267f5
  1. 8
      test cases/common/68 number arithmetic/meson.build

@ -25,16 +25,16 @@ assert((5 % 2) == 1, 'Integer modulo (odd) is broken')
assert((4 % 2) == 0, 'Integer modulo (even) is broken')
if 2 * 1 % 2 != 0
error('Modulo precendence with multiplication is broken')
error('Modulo precedence with multiplication is broken')
endif
if 2 + 1 % 2 != 3
error('Modulo precendence with addition is broken')
error('Modulo precedence with addition is broken')
endif
if 9 / 9 % 2 != 1
error('Modulo precendence with division is broken')
error('Modulo precedence with division is broken')
endif
if 9 - 9 % 2 != 8
error('Modulo precendence with subtraction is broken')
error('Modulo precedence with subtraction is broken')
endif
assert(2.is_even(), 'int is_even() broken for even value')

Loading…
Cancel
Save