diff options
Diffstat (limited to 'tests/test_bool_type.sh')
| -rw-r--r-- | tests/test_bool_type.sh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/test_bool_type.sh b/tests/test_bool_type.sh index 16087bf..d18fd30 100644 --- a/tests/test_bool_type.sh +++ b/tests/test_bool_type.sh @@ -1,14 +1,12 @@ -cat <<'EOF' > expected -1,0 -1,1,1 -EOF -test_diff <<'EOF' -int printf(const char*, ...); +test_exit_code 0 <<'EOF' +#include "../../helpers.h" int main() { bool b1 = true, b0 = false; - printf("%d,%d\n", b1, b0); - printf("%d,%d,%d\n", sizeof(b1), sizeof(b0), sizeof(bool)); + ASSERT_EQ(1, b1); + ASSERT_EQ(0, b0); + ASSERT_EQ(1, sizeof(b1)); + ASSERT_EQ(1, sizeof(b0)); + ASSERT_EQ(1, sizeof(bool)); } EOF - |
