From 0518752e3c22f328d41c777f0468185f87c59b63 Mon Sep 17 00:00:00 2001 From: wanderer Date: Sat, 10 Dec 2016 15:10:00 -0500 Subject: [PATCH] added custom section tests --- interpreter/test/custom_section.wast | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 interpreter/test/custom_section.wast diff --git a/interpreter/test/custom_section.wast b/interpreter/test/custom_section.wast new file mode 100644 index 0000000000..14441ff0ae --- /dev/null +++ b/interpreter/test/custom_section.wast @@ -0,0 +1,5 @@ +(module "\00asm" "\0d\00\00\00" "\00\24\10" "a custom section" "this is the payload") +(module "\00asm" "\0d\00\00\00" "\00\24\10" "a custom section" "this is the payload" "\00\24\10" "a custom section" "this is the payload") + +(assert_malformed (module "\00asm" "\0d\00\00\00" "\00\26\10" "a custom section" "this is the payload") "unexpected end") +(assert_malformed (module "\00asm" "\0d\00\00\00" "\00\24\11" "a custom section" "this is the payload" "\00\25\10" "a custom section" "this is the payload") "unexpected end")