aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_ternary_operator.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_ternary_operator.sh')
-rw-r--r--tests/test_ternary_operator.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/test_ternary_operator.sh b/tests/test_ternary_operator.sh
index c98ff43..c63f581 100644
--- a/tests/test_ternary_operator.sh
+++ b/tests/test_ternary_operator.sh
@@ -1,12 +1,8 @@
-cat <<'EOF' > expected
-2 5
-EOF
-
-test_diff <<'EOF'
-int printf();
+test_exit_code 0 <<'EOF'
+#include "../../helpers.h"
int main() {
- printf("%d %d\n", 1 ? 2 : 3, 0 ? 4 : 5);
+ ASSERT_EQ(2, 1 ? 2 : 3);
+ ASSERT_EQ(5, 0 ? 4 : 5);
}
EOF
-