diff options
author | Alon Zakai <azakai@google.com> | 2024-04-24 15:47:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 15:47:21 -0700 |
commit | 69c232ce43fce5c217331e8b07b60ac8ff3c5e78 (patch) | |
tree | fb7e09cd34b369ef0924b88681abe61b27742472 /test/lit/exec | |
parent | 2e7e9ddcef219a2a1124dfb7f7009602c42084df (diff) | |
download | binaryen-69c232ce43fce5c217331e8b07b60ac8ff3c5e78.tar.gz binaryen-69c232ce43fce5c217331e8b07b60ac8ff3c5e78.tar.bz2 binaryen-69c232ce43fce5c217331e8b07b60ac8ff3c5e78.zip |
[Strings] Implement string.measure_wtf16 in interpreter (#6535)
Diffstat (limited to 'test/lit/exec')
-rw-r--r-- | test/lit/exec/strings.wast | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lit/exec/strings.wast b/test/lit/exec/strings.wast index 0f3183ac6..d2bf39191 100644 --- a/test/lit/exec/strings.wast +++ b/test/lit/exec/strings.wast @@ -472,6 +472,14 @@ (i32.const -83) ) ) + + ;; CHECK: [fuzz-exec] calling string.measure + ;; CHECK-NEXT: [fuzz-exec] note result: string.measure => 5 + (func $string.measure (export "string.measure") (result i32) + (string.measure_wtf16 + (string.const "five!") + ) + ) ) ;; CHECK: [fuzz-exec] calling new_wtf16_array ;; CHECK-NEXT: [fuzz-exec] note result: new_wtf16_array => string("ello") @@ -597,6 +605,9 @@ ;; CHECK: [fuzz-exec] calling invalid_code_point ;; CHECK-NEXT: [trap invalid code point] + +;; CHECK: [fuzz-exec] calling string.measure +;; CHECK-NEXT: [fuzz-exec] note result: string.measure => 5 ;; CHECK-NEXT: [fuzz-exec] comparing compare.1 ;; CHECK-NEXT: [fuzz-exec] comparing compare.10 ;; CHECK-NEXT: [fuzz-exec] comparing compare.2 @@ -634,6 +645,7 @@ ;; CHECK-NEXT: [fuzz-exec] comparing slice-big ;; CHECK-NEXT: [fuzz-exec] comparing slice-unicode ;; CHECK-NEXT: [fuzz-exec] comparing string.from_code_point +;; CHECK-NEXT: [fuzz-exec] comparing string.measure ;; CHECK-NEXT: [fuzz-exec] comparing surrogate_pair_code_point ;; CHECK-NEXT: [fuzz-exec] comparing unsigned_code_point ;; CHECK-NEXT: [fuzz-exec] comparing weird_code_point |