From 6155eae1f413dc81b7795f475453044950695ef3 Mon Sep 17 00:00:00 2001 From: Christopher Chang <51393127+chriscerie@users.noreply.github.com> Date: Sat, 11 Nov 2023 08:41:22 -0800 Subject: [PATCH] Update test --- .../tests/lints/divide_by_zero/divide_by_zero.fixed.diff | 1 + selene-lib/tests/lints/divide_by_zero/divide_by_zero.stderr | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/selene-lib/tests/lints/divide_by_zero/divide_by_zero.fixed.diff b/selene-lib/tests/lints/divide_by_zero/divide_by_zero.fixed.diff index 2c40568c..f258874f 100644 --- a/selene-lib/tests/lints/divide_by_zero/divide_by_zero.fixed.diff +++ b/selene-lib/tests/lints/divide_by_zero/divide_by_zero.fixed.diff @@ -5,3 +5,4 @@ -[MA] local _ = x / 0 +[MA] local _ = math.huge() local _ = 0 / 0 +-[MA] local _ = -1 / 0+[MA] local _ = math.huge() \ No newline at end of file diff --git a/selene-lib/tests/lints/divide_by_zero/divide_by_zero.stderr b/selene-lib/tests/lints/divide_by_zero/divide_by_zero.stderr index e6bb50c2..4d4a0eb2 100644 --- a/selene-lib/tests/lints/divide_by_zero/divide_by_zero.stderr +++ b/selene-lib/tests/lints/divide_by_zero/divide_by_zero.stderr @@ -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()`