mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-29 19:47:45 +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:
parent
a7005b0c50
commit
ae019014d0
58 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,8 @@ fn cases() {
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
for case in cases {
|
for case in cases {
|
||||||
let path_in = format!("tests/cases/{}/in", case);
|
let path_in = format!("tests/cases/{}/in.nix", case);
|
||||||
let path_out = format!("tests/cases/{}/out", case);
|
let path_out = format!("tests/cases/{}/out.nix", case);
|
||||||
let content_in = std::fs::read_to_string(path_in.clone()).unwrap();
|
let content_in = std::fs::read_to_string(path_in.clone()).unwrap();
|
||||||
let content_got =
|
let content_got =
|
||||||
alejandra::format::in_memory(path_in, content_in.clone()).1;
|
alejandra::format::in_memory(path_in, content_in.clone()).1;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
[formatter.nix]
|
[formatter.nix]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
includes = ["*.nix"]
|
includes = ["*.nix"]
|
||||||
|
excludes = ["./src/alejandra/tests/cases/**"]
|
||||||
options = ["run", "--"]
|
options = ["run", "--"]
|
||||||
|
|
||||||
[formatter.prettier]
|
[formatter.prettier]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue