From 0f44effb022a7bef827043967ad9b2ff68c6914a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 24 Aug 2026 09:53:52 -0700 Subject: [PATCH] Switch two tests to assert_malformed These specifically shouldn't parse, or even create an AST, which means that the bytes can't be converted to text, for example. --- test/binary/binary.wast | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/binary/binary.wast b/test/binary/binary.wast index 6cb4bb03..dbade4ea 100644 --- a/test/binary/binary.wast +++ b/test/binary/binary.wast @@ -943,7 +943,7 @@ "invalid leading byte (0x0) for outer alias target" ) -(assert_invalid +(assert_malformed (component binary "\00asm" "\0d\00\01\00" ;; preamble "\03\0a" ;; core type section (10 bytes) @@ -1376,7 +1376,7 @@ ) "is not a valid extern name" ) -(assert_invalid +(assert_malformed (component binary "\00asm" "\0d\00\01\00" ;; preamble "\07\03" ;; type section (3 bytes)