mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Added some tests that should work some day
This commit is contained in:
parent
4ea52c139d
commit
ddc15fd2ea
1 changed files with 34 additions and 1 deletions
|
@ -179,7 +179,40 @@ mod gen_list {
|
||||||
&[true, true, false, true, true],
|
&[true, true, false, true, true],
|
||||||
&'static [bool]
|
&'static [bool]
|
||||||
);
|
);
|
||||||
// assert_evals_to!("List.map [] (\\a -> a)", &[], &'static [i64]);
|
|
||||||
|
// assert_evals_to!(
|
||||||
|
// indoc!(
|
||||||
|
// r#"
|
||||||
|
// main = \{} ->
|
||||||
|
// nonEmpty : List Int
|
||||||
|
// nonEmpty =
|
||||||
|
// [ 1, 1, -4, 1, 2 ]
|
||||||
|
//
|
||||||
|
// greaterThanOne : Int -> Bool
|
||||||
|
// greaterThanOne i =
|
||||||
|
// i > 0
|
||||||
|
//
|
||||||
|
// List.map nonEmpty greaterThanOne
|
||||||
|
//
|
||||||
|
// main {}
|
||||||
|
// "#
|
||||||
|
// ),
|
||||||
|
// &[true, true, false, true, true],
|
||||||
|
// &'static [bool]
|
||||||
|
// );
|
||||||
|
|
||||||
|
// assert_evals_to!(
|
||||||
|
// indoc!(
|
||||||
|
// r#"
|
||||||
|
// main = \{} ->
|
||||||
|
// List.map [] (\x -> x > 0)
|
||||||
|
//
|
||||||
|
// main {}
|
||||||
|
// "#
|
||||||
|
// ),
|
||||||
|
// &[],
|
||||||
|
// &'static [bool]
|
||||||
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue