Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscerie committed Nov 11, 2023
1 parent 6e4472c commit 6155eae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
-[MA] local _ = x / 0
+[MA] local _ = math.huge()
local _ = 0 / 0
-[MA] local _ = -1 / 0+[MA] local _ = math.huge()
4 changes: 2 additions & 2 deletions selene-lib/tests/lints/divide_by_zero/divide_by_zero.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ error[divide_by_zero]: dividing by zero is not readable
4 │ local _ = x / 0
│ ^^^^^ try: `math.huge()`

error[divide_by_zero]: dividing by zero is not allowed, use math.huge instead
error[divide_by_zero]: dividing by zero is not readable
┌─ divide_by_zero.lua:6:11
6 │ local _ = -1 / 0
│ ^^^^^^
│ ^^^^^^ try: `math.huge()`

0 comments on commit 6155eae

Please sign in to comment.