1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-29 03:27:44 +00:00

Rename all testfiles to have a file extension

Having the file extension makes it easier for editors to do syntax highlighting.
This commit is contained in:
piegames 2023-03-24 16:00:07 +01:00 committed by Kevin Amado
parent a7005b0c50
commit ae019014d0
58 changed files with 3 additions and 2 deletions

View file

@ -12,8 +12,8 @@ fn cases() {
.collect();
for case in cases {
let path_in = format!("tests/cases/{}/in", case);
let path_out = format!("tests/cases/{}/out", case);
let path_in = format!("tests/cases/{}/in.nix", case);
let path_out = format!("tests/cases/{}/out.nix", case);
let content_in = std::fs::read_to_string(path_in.clone()).unwrap();
let content_got =
alejandra::format::in_memory(path_in, content_in.clone()).1;

View file

@ -3,6 +3,7 @@
[formatter.nix]
command = "cargo"
includes = ["*.nix"]
excludes = ["./src/alejandra/tests/cases/**"]
options = ["run", "--"]
[formatter.prettier]