mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Glue code working
This commit is contained in:
parent
0ca85a54fe
commit
4231b340ee
11 changed files with 251 additions and 2 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue