Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jkempster committed Jul 22, 2015
1 parent 2379ec9 commit 0d2348b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/scripts/operators.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ do
assertEqual (-d % e, 5, 'Modulo operator should always return a positive number if the divisor is positive and wrap around if passed a negative dividend')
assertEqual (d % -e, -5, 'Modulo operator should always return a negative number if the divisor is negative')
assertEqual (-d % -e, -2, 'Modulo operator should always wrap around when passed a negative dividend')
assertEqual (j % k, 0, 'Modulo operator should always return zero when the absoulte remainder is zero')
assertEqual (-j % k, 0, 'Modulo operator should always return zero when the absoulte remainder is zero and the dividend is negative')
assertEqual (j % -k, 0, 'Modulo operator should always return zero when the absoulte remainder is zero and the divisor is negative')
assertEqual (j % k, 0, 'Modulo operator should always return zero when the absolute remainder is zero')
assertEqual (-j % k, 0, 'Modulo operator should always return zero when the absolute remainder is zero and the dividend is negative')
assertEqual (j % -k, 0, 'Modulo operator should always return zero when the absolute remainder is zero and the divisor is negative')


assertEqual (d % f, g, 'Modulo operator should always return "nan" when passed zero as a divisor')
Expand Down

0 comments on commit 0d2348b

Please sign in to comment.