From 68f4aabbce35f0c534a0a5b877d7d67b8a06b83d Mon Sep 17 00:00:00 2001 From: Luke Boswell Date: Wed, 8 Jan 2025 16:36:34 +1100 Subject: [PATCH] remove example formatting test from test_syntax --- crates/compiler/test_syntax/tests/test_fmt.rs | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/crates/compiler/test_syntax/tests/test_fmt.rs b/crates/compiler/test_syntax/tests/test_fmt.rs index b91990228e..bb8b69b701 100644 --- a/crates/compiler/test_syntax/tests/test_fmt.rs +++ b/crates/compiler/test_syntax/tests/test_fmt.rs @@ -5992,32 +5992,6 @@ mod test_fmt { )); } - #[test] - /// Test that everything under examples/ is formatted correctly - /// If this test fails on your diff, it probably means you need to re-format the examples. - /// Try this: - /// `cargo run -- format $(find examples -name \*.roc)` - fn test_fmt_examples() { - let mut count = 0; - let mut root = workspace_root(); - root.push("examples"); - for entry in walkdir::WalkDir::new(&root) { - let entry = entry.unwrap(); - let path = entry.path(); - if path.extension() == Some(std::ffi::OsStr::new("roc")) { - count += 1; - let src = std::fs::read_to_string(path).unwrap(); - println!("Now trying to format {}", path.display()); - module_formats_same(&src); - } - } - assert!( - count > 0, - "Expecting to find at least 1 .roc file to format under {}", - root.display() - ); - } - #[test] /// Test that builtins are formatted correctly /// If this test fails on your diff, it probably means you need to re-format a builtin.