Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/core/annotations.wast
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@

(assert_malformed (module quote "(@x \"") "unclosed string")
(assert_malformed (module quote "(@x \")") "unclosed string")
(assert_malformed (module quote "(@a (; x") "unclosed comment")

(assert_malformed (module quote "((@a)@b)") "unknown operator")
(assert_malformed (module quote "(func $(@a))") "empty identifier")
Expand Down
Binary file modified test/core/comments.wast
Binary file not shown.
7 changes: 7 additions & 0 deletions test/core/token.wast
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@
)
"unknown operator"
)

;; Control characters in strings

(assert_malformed
(module quote "(memory 1) (data (i32.const 0) \"a\01b\")")
"illegal control character"
)
Loading