add failing tests

* SIGSEGV for non-empty strings
This commit is contained in:
Dan Knutson 2021-10-23 10:16:30 -05:00
parent e7523ad41d
commit 46365da73a
3 changed files with 46 additions and 9 deletions

View file

@ -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