From e9e4a8d99e4d67d83ee73158927baba65e706251 Mon Sep 17 00:00:00 2001 From: marcin Date: Sat, 13 Sep 2025 19:09:35 +0100 Subject: [PATCH 1/3] feat: minor typos --- .pre-commit-hooks.yaml | 2 +- README.adoc | 2 +- bash_unit | 6 +++--- tests/test_core.sh | 2 +- tests/test_tap_format | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 7d0a0bd..faccfaf 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -7,7 +7,7 @@ files: ^tests/(.*/)?test_.*\.sh$ types: [shell] pass_filenames: true -# Duplicated with different id name for convienience +# Duplicated with different id name for convenience - id: bash_unit name: Run tests with `bash_unit` description: This hook runs tests using `bash_unit` diff --git a/README.adoc b/README.adoc index 98fa737..fdf8921 100644 --- a/README.adoc +++ b/README.adoc @@ -598,7 +598,7 @@ test_obvious_notmatching_with_assert_not_matches(){ 'a string' should not match 'a str.*' expected regex [a str.*] should not match but matched [a string] doc:2:test_obvious_matching_with_assert_not_matches() - Running test_obvious_notmatching_with_assert_not_matches ... SUCCESS + Running test_obvious_nonmatching_with_assert_not_matches ... SUCCESS ``` === *assert_within_delta* diff --git a/bash_unit b/bash_unit index 87e177d..b21fdf1 100755 --- a/bash_unit +++ b/bash_unit @@ -407,7 +407,7 @@ text_format() { notify_stack() { color "$YELLOW" } - notify_suites_succeded() { + notify_suites_succeeded() { echo -n "Overall result: SUCCESS" | pretty_success echo } @@ -460,7 +460,7 @@ tap_format() { notify_stack() { "$SED" 's:^:# :' | color "$YELLOW" } - notify_suites_succeded() { + notify_suites_succeeded() { local message="$1" echo "1..$message" } @@ -595,7 +595,7 @@ if ((failure)) then notify_suites_failed "$(cat "${TEST_COUNT_FILE}")" else - notify_suites_succeded "$(cat "${TEST_COUNT_FILE}")" + notify_suites_succeeded "$(cat "${TEST_COUNT_FILE}")" fi exit $failure diff --git a/tests/test_core.sh b/tests/test_core.sh index cc3bd27..dc9d021 100644 --- a/tests/test_core.sh +++ b/tests/test_core.sh @@ -338,6 +338,6 @@ mute() { notify_stack () { $CAT >/dev/null ; } notify_stdout () { : ; } notify_stderr () { : ; } - notify_suites_succeded () { : ; } + notify_suites_succeeded () { : ; } notify_suites_failed () { : ; } } diff --git a/tests/test_tap_format b/tests/test_tap_format index 7d9c11b..c7681ea 100644 --- a/tests/test_tap_format +++ b/tests/test_tap_format @@ -8,7 +8,7 @@ test_bash_unit_rejects_invalid_format() { assert_fails "$BASH_UNIT -f invalid_format" } -test_tap_format_for_one_succesfull_test() { +test_tap_format_for_one_successful_test() { assert_equals \ "\ # Running tests in code From 5b82c9f0a47eac71e54e9f94143b2056a5206816 Mon Sep 17 00:00:00 2001 From: marcin Date: Sat, 13 Sep 2025 19:12:23 +0100 Subject: [PATCH 2/3] feat: add spellchecker directive --- bash_unit | 1 + 1 file changed, 1 insertion(+) diff --git a/bash_unit b/bash_unit index b21fdf1..49cf8d3 100755 --- a/bash_unit +++ b/bash_unit @@ -18,6 +18,7 @@ # shellcheck disable=2317 # Ignore unreachable - most function are not called. # shellcheck disable=2155 # Ignore Declare and assign separately +# spellchecker: ignore NOCOLOR SHUF VERSION=v2.3.3 From 7594fa359e12042505a9b8499f6333f91beb58d2 Mon Sep 17 00:00:00 2001 From: marcin Date: Sat, 13 Sep 2025 19:18:37 +0100 Subject: [PATCH 3/3] fix: revert accidental change --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index fdf8921..98fa737 100644 --- a/README.adoc +++ b/README.adoc @@ -598,7 +598,7 @@ test_obvious_notmatching_with_assert_not_matches(){ 'a string' should not match 'a str.*' expected regex [a str.*] should not match but matched [a string] doc:2:test_obvious_matching_with_assert_not_matches() - Running test_obvious_nonmatching_with_assert_not_matches ... SUCCESS + Running test_obvious_notmatching_with_assert_not_matches ... SUCCESS ``` === *assert_within_delta*