Skip to content

Commit f35a3b0

Browse files
committed
Add missing conversions in string slice tests
Our validator apparently does not catch this type issue yet. For now just fix the tests.
1 parent f40e90a commit f35a3b0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/lit/passes/precompute-strings.wast

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@
216216
(func $slice (export "slice") (result (ref string))
217217
;; Slicing [3:6] here should definitely output "def".
218218
(stringview_wtf16.slice
219-
(string.const "abcdefgh")
219+
(string.as_wtf16
220+
(string.const "abcdefgh")
221+
)
220222
(i32.const 3)
221223
(i32.const 6)
222224
)
@@ -233,7 +235,9 @@
233235
;; This slice contains non-ascii, so we do not optimize.
234236
(stringview_wtf16.slice
235237
;; abcd£fgh
236-
(string.const "abcd\C2\A3fgh")
238+
(string.as_wtf16
239+
(string.const "abcd\C2\A3fgh")
240+
)
237241
(i32.const 3)
238242
(i32.const 6)
239243
)

0 commit comments

Comments
 (0)