diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-03 15:09:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-03 15:09:07 +0900 |
| commit | 83340b4443123004f13a88c3a50985628dd4bb64 (patch) | |
| tree | de1c216d918c68a90576d3bc0ac2a27cb47a57fb /tests | |
| parent | 2348c6a8c8fe369dd57ee59d139d076ad7e2c82d (diff) | |
| download | P4Dcc-83340b4443123004f13a88c3a50985628dd4bb64.tar.gz P4Dcc-83340b4443123004f13a88c3a50985628dd4bb64.tar.zst P4Dcc-83340b4443123004f13a88c3a50985628dd4bb64.zip | |
comparison
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/006.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/006.sh b/tests/006.sh new file mode 100644 index 0000000..2ae85ec --- /dev/null +++ b/tests/006.sh @@ -0,0 +1,49 @@ +set -e + +bash ../../test_exit_code.sh 1 <<'EOF' +int main() { + return 0 == 0; +} +EOF + +bash ../../test_exit_code.sh 0 <<'EOF' +int main() { + return 123 != 123; +} +EOF + +bash ../../test_exit_code.sh 1 <<'EOF' +int main() { + return 123 != 456; +} +EOF + +bash ../../test_exit_code.sh 0 <<'EOF' +int main() { + return 123 == 124; +} +EOF + +bash ../../test_exit_code.sh 1 <<'EOF' +int main() { + return 123 < 567; +} +EOF + +bash ../../test_exit_code.sh 1 <<'EOF' +int main() { + return 123 <= 567; +} +EOF + +bash ../../test_exit_code.sh 1 <<'EOF' +int main() { + return 123 <= 123; +} +EOF + +bash ../../test_exit_code.sh 0 <<'EOF' +int main() { + return 123 < 123; +} +EOF |
