Update tests to check eq unbound float is resolved to dec

This commit is contained in:
Ayaz Hafiz 2022-12-01 11:41:42 -06:00
parent ed7d4f8f63
commit 3605008fce
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 22 additions and 5 deletions

View file

@ -8414,4 +8414,21 @@ mod solve_expr {
"[Ok a]* -> a",
);
}
#[test]
fn resolve_eq_for_float_forces_dec() {
infer_queries!(
indoc!(
r#"
app "test" provides [main] to "./platform"
n : Num *
main = n == 1.
# ^
"#
),
@"n : Dec"
);
}
}