aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_local_variables.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/test_local_variables.sh b/tests/test_local_variables.sh
index dfa704b..674899d 100644
--- a/tests/test_local_variables.sh
+++ b/tests/test_local_variables.sh
@@ -44,15 +44,13 @@ int main() {
}
EOF
-cat <<'EOF' > expected
-42
-EOF
-test_diff <<'EOF'
-int printf();
+test_exit_code 0 <<'EOF'
+#include "../../helpers.h"
int main() {
- int a = 42;
- printf("%d\n", a);
- return 0;
+ int d = 2, e = d, f = d + e;
+ ASSERT_EQ(2, d);
+ ASSERT_EQ(2, e);
+ ASSERT_EQ(4, f);
}
EOF