From d7b3a1f71e9681c87fa1cff9b43af9974070a549 Mon Sep 17 00:00:00 2001 From: Adrian Fluturel Date: Tue, 7 Jan 2025 07:22:31 +0100 Subject: [PATCH] Change some tests to include 2331 so they don't fail anymore --- src/ShellCheck/Checker.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ShellCheck/Checker.hs b/src/ShellCheck/Checker.hs index 0cfc3ab..b598723 100644 --- a/src/ShellCheck/Checker.hs +++ b/src/ShellCheck/Checker.hs @@ -359,7 +359,7 @@ prop_optionIncludes2 = prop_optionIncludes3 = -- expect 2086, no inclusions provided, so it is reported - [2086] == checkOptionIncludes Nothing "#!/bin/sh\n var='a b'\n echo $var" + [2086, 2331] == checkOptionIncludes Nothing "#!/bin/sh\n var='a b'\n echo $var" prop_optionIncludes4 = -- expect 2086 & 2154, only 2154 included, so only that's reported @@ -520,7 +520,7 @@ prop_hereDocsAreParsedWithoutTrailingLinefeed = 1044 `elem` result prop_hereDocsWillHaveParsedIndices = null result where - result = check "#!/bin/bash\nmy_array=(a b)\ncat <> ./test\n $(( 1 + my_array[1] ))\nEOF" + result = check "#!/bin/bash\nreadonly my_array=(a b)\ncat <> ./test\n $(( 1 + my_array[1] ))\nEOF" prop_rcCanSuppressDfa = null result where