mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add types for Str.startsWith
This commit is contained in:
parent
9e1836dde0
commit
b82baf55e7
3 changed files with 24 additions and 0 deletions
|
@ -192,6 +192,18 @@ mod solve_expr {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn string_starts_with() {
|
||||
infer_eq_without_problem(
|
||||
indoc!(
|
||||
r#"
|
||||
Str.startsWith
|
||||
"#
|
||||
),
|
||||
"Str, Str -> Bool",
|
||||
);
|
||||
}
|
||||
|
||||
// #[test]
|
||||
// fn block_string_literal() {
|
||||
// infer_eq(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue