mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
enable record updating tests since they already pass
This commit is contained in:
parent
6a38ec03ed
commit
e56c46ff54
1 changed files with 26 additions and 26 deletions
|
@ -836,35 +836,35 @@ mod gen_record {
|
||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// #[test]
|
#[test]
|
||||||
// fn update_record() {
|
fn update_record() {
|
||||||
// assert_evals_to!(
|
assert_evals_to!(
|
||||||
// indoc!(
|
indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// rec = { foo: 42, bar: 6.28 }
|
rec = { foo: 42, bar: 6 }
|
||||||
|
|
||||||
// { rec & foo: rec.foo + 1 }
|
{ rec & foo: rec.foo + 1 }
|
||||||
// "#
|
"#
|
||||||
// ),
|
),
|
||||||
// (6.28, 43),
|
(6, 43),
|
||||||
// (f64, i64)
|
(i64, i64)
|
||||||
// );
|
);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// #[test]
|
#[test]
|
||||||
// fn update_single_element_record() {
|
fn update_single_element_record() {
|
||||||
// assert_evals_to!(
|
assert_evals_to!(
|
||||||
// indoc!(
|
indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// rec = { foo: 42}
|
rec = { foo: 42}
|
||||||
|
|
||||||
// { rec & foo: rec.foo + 1 }
|
{ rec & foo: rec.foo + 1 }
|
||||||
// "#
|
"#
|
||||||
// ),
|
),
|
||||||
// 43,
|
43,
|
||||||
// i64
|
i64
|
||||||
// );
|
);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// #[test]
|
// #[test]
|
||||||
// fn booleans_in_record() {
|
// fn booleans_in_record() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue