Glue code working

This commit is contained in:
Joshua Hoeflich 2021-08-08 11:06:10 -05:00
parent 0ca85a54fe
commit 4231b340ee
11 changed files with 251 additions and 2 deletions

View file

@ -830,3 +830,15 @@ fn str_to_bytes() {
&[u8]
);
}
#[test]
fn str_from_utf8_range() {
assert_evals_to!(
r#"
bytes = Str.toBytes "hello"
Str.fromUtf8Range bytes { start: 0, count: 5 }
"#,
RocStr::from("hello"),
RocStr
);
}