From 83340b4443123004f13a88c3a50985628dd4bb64 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 3 May 2025 15:09:07 +0900 Subject: comparison --- tests/006.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/006.sh (limited to 'tests') 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 -- cgit v1.2.3-70-g09d2