Use RocStr.fromSlice in test

This commit is contained in:
Richard Feldman 2022-07-01 18:35:47 -04:00
parent 46c96be6ce
commit 598d03737c
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

@ -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 };