mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Commented in many tests which apparently did not work in the past
This commit is contained in:
parent
2ca9dad156
commit
56c36c51d7
1 changed files with 125 additions and 105 deletions
|
@ -387,32 +387,32 @@ mod test_fmt {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[test]
|
#[test]
|
||||||
// fn defs_with_defs() {
|
fn defs_with_defs() {
|
||||||
// expr_formats_to(
|
expr_formats_to(
|
||||||
// indoc!(
|
indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// x =
|
x =
|
||||||
// y = 4
|
y = 4
|
||||||
// z = 8
|
z = 8
|
||||||
// w
|
w
|
||||||
|
|
||||||
// x
|
x
|
||||||
// "#
|
"#
|
||||||
// ),
|
),
|
||||||
// indoc!(
|
indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// x =
|
x =
|
||||||
// y = 4
|
y = 4
|
||||||
// z = 8
|
z = 8
|
||||||
|
|
||||||
// w
|
w
|
||||||
|
|
||||||
// x
|
x
|
||||||
// "#
|
"#
|
||||||
// ),
|
),
|
||||||
// );
|
);
|
||||||
// }
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn comment_between_two_defs() {
|
fn comment_between_two_defs() {
|
||||||
|
@ -573,15 +573,16 @@ mod test_fmt {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[test]
|
#[test]
|
||||||
// fn record_field_destructuring() {
|
fn record_field_destructuring() {
|
||||||
// expr_formats_same(indoc!(
|
expr_formats_same(indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// when foo is
|
when foo is
|
||||||
// { x: 5 } -> 42
|
{ x: 5 } ->
|
||||||
// "#
|
42
|
||||||
// ));
|
"#
|
||||||
// }
|
));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn record_updating() {
|
fn record_updating() {
|
||||||
|
@ -942,24 +943,43 @@ mod test_fmt {
|
||||||
"#
|
"#
|
||||||
));
|
));
|
||||||
|
|
||||||
// expr_formats_to(
|
expr_formats_to(
|
||||||
// indoc!(
|
indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// identity = \a
|
identity = \a
|
||||||
// -> a
|
-> a
|
||||||
|
|
||||||
// identity 41
|
identity 41
|
||||||
// "#
|
"#
|
||||||
// ),
|
),
|
||||||
// indoc!(
|
indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// identity = \a ->
|
identity = \a -> a
|
||||||
// a
|
|
||||||
|
|
||||||
// identity 41
|
identity 41
|
||||||
// "#
|
"#
|
||||||
// ),
|
),
|
||||||
// );
|
);
|
||||||
|
|
||||||
|
expr_formats_to(
|
||||||
|
indoc!(
|
||||||
|
r#"
|
||||||
|
identity = \a
|
||||||
|
->
|
||||||
|
a + b
|
||||||
|
|
||||||
|
identity 4010
|
||||||
|
"#
|
||||||
|
),
|
||||||
|
indoc!(
|
||||||
|
r#"
|
||||||
|
identity = \a ->
|
||||||
|
a + b
|
||||||
|
|
||||||
|
identity 4010
|
||||||
|
"#
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
expr_formats_same(indoc!(
|
expr_formats_same(indoc!(
|
||||||
r#"
|
r#"
|
||||||
|
@ -981,7 +1001,7 @@ mod test_fmt {
|
||||||
// identity 43
|
// identity 43
|
||||||
// "#
|
// "#
|
||||||
// ));
|
// ));
|
||||||
//
|
|
||||||
expr_formats_same(indoc!(
|
expr_formats_same(indoc!(
|
||||||
r#"
|
r#"
|
||||||
identity = \a,
|
identity = \a,
|
||||||
|
@ -1237,17 +1257,17 @@ mod test_fmt {
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn multi_line_list_def() {
|
fn multi_line_list_def() {
|
||||||
// expr_formats_same(indoc!(
|
expr_formats_same(indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// l =
|
l =
|
||||||
// [
|
[
|
||||||
// 1,
|
1,
|
||||||
// 2
|
2,
|
||||||
// ]
|
]
|
||||||
|
|
||||||
// l
|
l
|
||||||
// "#
|
"#
|
||||||
// ));
|
));
|
||||||
|
|
||||||
expr_formats_to(
|
expr_formats_to(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
@ -1273,32 +1293,32 @@ mod test_fmt {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// expr_formats_to(
|
expr_formats_to(
|
||||||
// indoc!(
|
indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// results =
|
results =
|
||||||
// # Let's count past 6
|
# Let's count past 6
|
||||||
// [
|
[
|
||||||
// Ok 6,
|
Ok 6,
|
||||||
// Err CountError
|
Err CountError
|
||||||
// ]
|
]
|
||||||
|
|
||||||
// allOks results
|
allOks results
|
||||||
// "#
|
"#
|
||||||
// ),
|
),
|
||||||
// indoc!(
|
indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// results =
|
results =
|
||||||
// # Let's count past 6
|
# Let's count past 6
|
||||||
// [
|
[
|
||||||
// Ok 6,
|
Ok 6,
|
||||||
// Err CountError
|
Err CountError,
|
||||||
// ]
|
]
|
||||||
|
|
||||||
// allOks results
|
allOks results
|
||||||
// "#
|
"#
|
||||||
// ),
|
),
|
||||||
// );
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// RECORD LITERALS
|
// RECORD LITERALS
|
||||||
|
@ -1355,18 +1375,18 @@ mod test_fmt {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn multi_line_record_def() {
|
fn multi_line_record_def() {
|
||||||
// expr_formats_same(indoc!(
|
expr_formats_same(indoc!(
|
||||||
// r#"
|
r#"
|
||||||
// pos =
|
pos =
|
||||||
// {
|
{
|
||||||
// x: 4,
|
x: 4,
|
||||||
// y: 11,
|
y: 11,
|
||||||
// z: 16
|
z: 16,
|
||||||
// }
|
}
|
||||||
|
|
||||||
// pos
|
pos
|
||||||
// "#
|
"#
|
||||||
// ));
|
));
|
||||||
|
|
||||||
expr_formats_to(
|
expr_formats_to(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue