diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-23 10:34:01 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-23 10:34:01 +0900 |
| commit | d83647f390d2910547ada2854eee6189e8552cb8 (patch) | |
| tree | aa52933f9993e7b13390ab0bd7a54e56b4af513b /tests/006.sh | |
| parent | 22cd700370d5d548a0cbd347bf1dc9cb9baad8e2 (diff) | |
| download | ducc-d83647f390d2910547ada2854eee6189e8552cb8.tar.gz ducc-d83647f390d2910547ada2854eee6189e8552cb8.tar.zst ducc-d83647f390d2910547ada2854eee6189e8552cb8.zip | |
refactor: test helpers
Diffstat (limited to 'tests/006.sh')
| -rw-r--r-- | tests/006.sh | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/006.sh b/tests/006.sh index 2ae85ec..ee88013 100644 --- a/tests/006.sh +++ b/tests/006.sh @@ -1,48 +1,46 @@ -set -e - -bash ../../test_exit_code.sh 1 <<'EOF' +test_exit_code 1 <<'EOF' int main() { return 0 == 0; } EOF -bash ../../test_exit_code.sh 0 <<'EOF' +test_exit_code 0 <<'EOF' int main() { return 123 != 123; } EOF -bash ../../test_exit_code.sh 1 <<'EOF' +test_exit_code 1 <<'EOF' int main() { return 123 != 456; } EOF -bash ../../test_exit_code.sh 0 <<'EOF' +test_exit_code 0 <<'EOF' int main() { return 123 == 124; } EOF -bash ../../test_exit_code.sh 1 <<'EOF' +test_exit_code 1 <<'EOF' int main() { return 123 < 567; } EOF -bash ../../test_exit_code.sh 1 <<'EOF' +test_exit_code 1 <<'EOF' int main() { return 123 <= 567; } EOF -bash ../../test_exit_code.sh 1 <<'EOF' +test_exit_code 1 <<'EOF' int main() { return 123 <= 123; } EOF -bash ../../test_exit_code.sh 0 <<'EOF' +test_exit_code 0 <<'EOF' int main() { return 123 < 123; } |
