Commented in many tests which apparently did not work in the past

This commit is contained in:
Chadtech 2021-10-16 13:44:14 -04:00
parent 2ca9dad156
commit 56c36c51d7

View file

@ -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#"
@ -969,19 +989,19 @@ mod test_fmt {
"# "#
)); ));
// expr_formats_same(indoc!( // expr_formats_same(indoc!(
// r#" // r#"
// identity = // identity =
// \{ // \{
// x, // x,
// y // y
// } // }
// -> a // -> a
//
// 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!(