summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerin Millar <kfm@plushkava.net>2024-06-02 18:33:55 +0100
committerKerin Millar <kfm@plushkava.net>2024-06-11 07:11:59 +0100
commit875d349103daa320f3a6cc155bd26103adec89de (patch)
treeb08a68d12715fba0478e321ceb32dea894e56346
parenttest-functions: Remove an unused variable (diff)
downloadgentoo-functions-875d349103daa320f3a6cc155bd26103adec89de.tar.gz
gentoo-functions-875d349103daa320f3a6cc155bd26103adec89de.tar.bz2
gentoo-functions-875d349103daa320f3a6cc155bd26103adec89de.zip
test-functions: Clean up the indentation
Signed-off-by: Kerin Millar <kfm@plushkava.net>
-rwxr-xr-xtest-functions52
1 files changed, 26 insertions, 26 deletions
diff --git a/test-functions b/test-functions
index e0bd127..8ff6380 100755
--- a/test-functions
+++ b/test-functions
@@ -304,13 +304,13 @@ test_is_identifier() {
eq 0 Z_a \
eq 0 Z_Z
- callback() {
- shift
- test_description="is_identifier $(_print_args "$@")"
- is_identifier "$@"
- }
+ callback() {
+ shift
+ test_description="is_identifier $(_print_args "$@")"
+ is_identifier "$@"
+ }
- iterate_tests 3 "$@"
+ iterate_tests 3 "$@"
}
test_is_int() {
@@ -329,13 +329,13 @@ test_is_int() {
eq 0 -1 \
eq 0 123456789
- callback() {
- shift
- test_description="is_int $(_print_args "$@")"
- is_int "$@"
- }
+ callback() {
+ shift
+ test_description="is_int $(_print_args "$@")"
+ is_int "$@"
+ }
- iterate_tests 3 "$@"
+ iterate_tests 3 "$@"
}
test_is_visible() {
@@ -349,13 +349,13 @@ test_is_visible() {
eq 0 "$(printf '\t.\t')" \
eq 0 "$(printf '\a.\a')"
- callback() {
- shift
- test_description="_is_visible $(_print_args "$@")"
- _is_visible "$@"
- }
+ callback() {
+ shift
+ test_description="_is_visible $(_print_args "$@")"
+ _is_visible "$@"
+ }
- iterate_tests 3 "$@"
+ iterate_tests 3 "$@"
}
test_yesno() {
@@ -385,16 +385,16 @@ test_yesno() {
ge 1 not-a-valid-nameref \
ge 1 '_"; set -- yes # code injection'
- # shellcheck disable=2034
- truthful_nameref=yes
+ # shellcheck disable=2034
+ truthful_nameref=yes
- callback() {
- shift
- test_description="yesno $(_print_args "$@")"
- yesno "$@"
- }
+ callback() {
+ shift
+ test_description="yesno $(_print_args "$@")"
+ yesno "$@"
+ }
- iterate_tests 3 "$@"
+ iterate_tests 3 "$@"
}
iterate_tests() {