mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
add failing tests
* SIGSEGV for non-empty strings
This commit is contained in:
parent
e7523ad41d
commit
46365da73a
3 changed files with 46 additions and 9 deletions
|
@ -3733,6 +3733,18 @@ mod solve_expr {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn str_trim() {
|
||||
infer_eq_without_problem(
|
||||
indoc!(
|
||||
r#"
|
||||
Str.trim
|
||||
"#
|
||||
),
|
||||
"Str -> Str",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn function_that_captures_nothing_is_not_captured() {
|
||||
// we should make sure that a function that doesn't capture anything it not itself captured
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue