diff options
Diffstat (limited to 'tests/comparison_operators.sh')
| -rw-r--r-- | tests/comparison_operators.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/comparison_operators.sh b/tests/comparison_operators.sh new file mode 100644 index 0000000..7bcb689 --- /dev/null +++ b/tests/comparison_operators.sh @@ -0,0 +1,14 @@ +test_exit_code 0 <<'EOF' +#include "../../helpers.h" + +int main() { + ASSERT_EQ(1, 0 == 0); + ASSERT_EQ(0, 123 != 123); + ASSERT_EQ(1, 123 != 456); + ASSERT_EQ(0, 123 == 124); + ASSERT_EQ(1, 123 < 567); + ASSERT_EQ(1, 123 <= 567); + ASSERT_EQ(1, 123 <= 123); + ASSERT_EQ(0, 123 < 123); +} +EOF |
