mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Reproduce a Bumpalo failure
This commit is contained in:
parent
61d6aab977
commit
27eac403a5
1 changed files with 7 additions and 0 deletions
|
@ -416,6 +416,13 @@ expect (Str.fromUtf8Range [240, 159, 144, 166] { start: 0, count: 4 }) == Ok "
|
|||
expect (Str.fromUtf8Range [] { start: 0, count: 0 }) == Ok ""
|
||||
expect (Str.fromUtf8Range [72, 105, 80, 103] { start: 2, count: 3 }) |> Result.isErr
|
||||
|
||||
# TODO why does this trigger a debug assertion failure in Bumpalo?
|
||||
expect
|
||||
actual = (Str.fromUtf8Range [233, 185, 143, 224, 174, 154, 224, 174, 191] { start: 3, count: 3 })
|
||||
expected = Ok "சி"
|
||||
|
||||
actual == expected
|
||||
|
||||
FromUtf8Result : {
|
||||
aByteIndex : Nat,
|
||||
bString : Str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue