mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
add test
This commit is contained in:
parent
a5957d9982
commit
d70e803dff
1 changed files with 21 additions and 0 deletions
|
@ -3137,3 +3137,24 @@ fn call_that_needs_closure_parameter() {
|
||||||
RocStr
|
RocStr
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[cfg(any(feature = "gen-llvm"))]
|
||||||
|
fn alias_defined_out_of_order() {
|
||||||
|
assert_evals_to!(
|
||||||
|
indoc!(
|
||||||
|
r#"
|
||||||
|
app "test" provides [ main ] to "./platform"
|
||||||
|
|
||||||
|
main : Foo
|
||||||
|
main = "foo"
|
||||||
|
|
||||||
|
Foo : Bar
|
||||||
|
Bar : Str
|
||||||
|
|
||||||
|
"#
|
||||||
|
),
|
||||||
|
RocStr::from_slice(b"foo"),
|
||||||
|
RocStr
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue