mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Use RocStr.fromSlice in test
This commit is contained in:
parent
46c96be6ce
commit
598d03737c
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ test "strToScalars: One ASCII char" {
|
|||
}
|
||||
|
||||
test "strToScalars: Multiple ASCII chars" {
|
||||
const str = RocStr.init("Roc!", 4);
|
||||
const str = RocStr.fromSlice("Roc!");
|
||||
defer RocStr.deinit(str);
|
||||
|
||||
const expected_array = [_]u32{ 82, 111, 99, 33 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue