From b277ba6786e9ed935f5734b389e80203d4682945 Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Sat, 9 Nov 2024 03:13:27 +0000 Subject: [PATCH] fix issue number --- libs/stringtable/tests/{gh882.rs => gh822.rs} | 5 +-- .../tests/{gh882.xml => gh822.xml} | 0 libs/stringtable/tests/gh882_out.xml | 39 ------------------- ...{gh882__sort-2.snap => gh822__sort-2.snap} | 2 +- .../{gh882__sort.snap => gh822__sort.snap} | 2 +- 5 files changed, 3 insertions(+), 45 deletions(-) rename libs/stringtable/tests/{gh882.rs => gh822.rs} (73%) rename libs/stringtable/tests/{gh882.xml => gh822.xml} (100%) delete mode 100644 libs/stringtable/tests/gh882_out.xml rename libs/stringtable/tests/snapshots/{gh882__sort-2.snap => gh822__sort-2.snap} (97%) rename libs/stringtable/tests/snapshots/{gh882__sort.snap => gh822__sort.snap} (99%) 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 {