diff --git a/libs/stringtable/tests/gh882.rs b/libs/stringtable/tests/gh822.rs similarity index 73% rename from libs/stringtable/tests/gh882.rs rename to libs/stringtable/tests/gh822.rs index 2b6cec7b..5021e7a0 100644 --- a/libs/stringtable/tests/gh882.rs +++ b/libs/stringtable/tests/gh822.rs @@ -7,7 +7,7 @@ use hemtt_stringtable::Project; #[test] fn sort() { let mut stringtable = Project::from_reader(BufReader::new( - std::fs::File::open("tests/gh882.xml").unwrap(), + std::fs::File::open("tests/gh822.xml").unwrap(), )) .unwrap(); stringtable.sort(); @@ -18,7 +18,4 @@ fn sort() { stringtable.to_writer(&mut out).unwrap(); insta::assert_snapshot!(out); - - // write to file - std::fs::write("tests/gh882_out.xml", out).unwrap(); } diff --git a/libs/stringtable/tests/gh882.xml b/libs/stringtable/tests/gh822.xml similarity index 100% rename from libs/stringtable/tests/gh882.xml rename to libs/stringtable/tests/gh822.xml diff --git a/libs/stringtable/tests/gh882_out.xml b/libs/stringtable/tests/gh882_out.xml deleted file mode 100644 index 4bacba7b..00000000 --- a/libs/stringtable/tests/gh882_out.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - I leave this for later - I leave this for later - - - - - - hey - hey - hey - hey - - - - - - - - - - "' - "' - "Hello World" - "' - "' - - - - diff --git a/libs/stringtable/tests/snapshots/gh882__sort-2.snap b/libs/stringtable/tests/snapshots/gh822__sort-2.snap similarity index 97% rename from libs/stringtable/tests/snapshots/gh882__sort-2.snap rename to libs/stringtable/tests/snapshots/gh822__sort-2.snap index 6a9e0727..870600d5 100644 --- a/libs/stringtable/tests/snapshots/gh882__sort-2.snap +++ b/libs/stringtable/tests/snapshots/gh822__sort-2.snap @@ -1,5 +1,5 @@ --- -source: libs/stringtable/tests/gh882.rs +source: libs/stringtable/tests/gh822.rs expression: out --- diff --git a/libs/stringtable/tests/snapshots/gh882__sort.snap b/libs/stringtable/tests/snapshots/gh822__sort.snap similarity index 99% rename from libs/stringtable/tests/snapshots/gh882__sort.snap rename to libs/stringtable/tests/snapshots/gh822__sort.snap index 540ad0d2..64a2afdc 100644 --- a/libs/stringtable/tests/snapshots/gh882__sort.snap +++ b/libs/stringtable/tests/snapshots/gh822__sort.snap @@ -1,5 +1,5 @@ --- -source: libs/stringtable/tests/gh882.rs +source: libs/stringtable/tests/gh822.rs expression: stringtable --- Project {