summaryrefslogtreecommitdiff
path: root/test/example/c-api-kitchen-sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r--test/example/c-api-kitchen-sink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index f438015b8..500188a55 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -159,9 +159,9 @@ void test_types() {
BinaryenType unreachable = BinaryenTypeUnreachable();
printf(" // BinaryenTypeUnreachable: %d\n", unreachable);
- assert(BinaryenTypeArity(unreachable) == 0);
+ assert(BinaryenTypeArity(unreachable) == 1);
BinaryenTypeExpand(unreachable, &valueType);
- assert(valueType == 0xdeadbeef);
+ assert(valueType == unreachable);
BinaryenType i32 = BinaryenTypeInt32();
printf(" // BinaryenTypeInt32: %d\n", i32);