Print bool correctly in repl

Closes #4149
This commit is contained in:
Ayaz Hafiz 2022-10-03 14:32:15 -05:00
parent b7e9b07acb
commit dfd0fdc990
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 40 additions and 0 deletions

View file

@ -1239,3 +1239,39 @@ fn record_of_poly_function_and_string() {
r#"{ a: <function>, b: "b" } : { a : * -> Str, b : Str }"#,
);
}
#[test]
fn expr_produces_bool() {
expect_success(
indoc!(
r#"
1 == 1
"#
),
r#"Bool.true : Bool"#,
);
}
#[test]
fn bool_true() {
expect_success(
indoc!(
r#"
Bool.true
"#
),
r#"Bool.true : Bool"#,
);
}
#[test]
fn bool_false() {
expect_success(
indoc!(
r#"
Bool.fasle
"#
),
r#"Bool.false : Bool"#,
);
}