From 8656e9c4ef4f795a35ab8a8a9ef83acc3b24af03 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 20 Oct 2024 18:56:47 -0500 Subject: [PATCH] update tests --- libs/sqf/tests/lints/s19_extra_not.sqf | 1 + libs/sqf/tests/lints/s19_extra_not/source.sqf | 1 - .../lints__simple_s19_extra_not.snap} | 7 +++++-- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 libs/sqf/tests/lints/s19_extra_not.sqf delete mode 100644 libs/sqf/tests/lints/s19_extra_not/source.sqf rename libs/sqf/tests/{lints/s19_extra_not/stdout.ansi => snapshots/lints__simple_s19_extra_not.snap} (60%) diff --git a/libs/sqf/tests/lints/s19_extra_not.sqf b/libs/sqf/tests/lints/s19_extra_not.sqf new file mode 100644 index 00000000..a0eac2a3 --- /dev/null +++ b/libs/sqf/tests/lints/s19_extra_not.sqf @@ -0,0 +1 @@ +! (5 isEqualTo 6) diff --git a/libs/sqf/tests/lints/s19_extra_not/source.sqf b/libs/sqf/tests/lints/s19_extra_not/source.sqf deleted file mode 100644 index e2fd34d9..00000000 --- a/libs/sqf/tests/lints/s19_extra_not/source.sqf +++ /dev/null @@ -1 +0,0 @@ -! (5 isEqualTo 6) \ No newline at end of file diff --git a/libs/sqf/tests/lints/s19_extra_not/stdout.ansi b/libs/sqf/tests/snapshots/lints__simple_s19_extra_not.snap similarity index 60% rename from libs/sqf/tests/lints/s19_extra_not/stdout.ansi rename to libs/sqf/tests/snapshots/lints__simple_s19_extra_not.snap index 8442cfef..340a9513 100644 --- a/libs/sqf/tests/lints/s19_extra_not/stdout.ansi +++ b/libs/sqf/tests/snapshots/lints__simple_s19_extra_not.snap @@ -1,6 +1,9 @@ +--- +source: libs/sqf/tests/lints.rs +expression: lint(stringify! (s19_extra_not)) +--- help[L-S19]: Unneeded Not - ┌─ source.sqf:1:1 + ┌─ s19_extra_not.sqf:1:1 │ 1 │ ! (5 isEqualTo 6) │ ^ Unneeded Not -