Move helix-view/tests/*txt files to txts subdirectory (#372)

* Move helix-view/tests/*txt files to txts subdirectory

* Rename tests/txts to tests/encoding
This commit is contained in:
teenjuna 2021-06-25 06:59:06 +00:00 committed by GitHub
parent f2d8ce3415
commit c688288881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 2 additions and 2 deletions

View File

@ -1136,7 +1136,7 @@ fn test_line_ending() {
macro_rules! test_decode { macro_rules! test_decode {
($label:expr, $label_override:expr) => { ($label:expr, $label_override:expr) => {
let encoding = encoding_rs::Encoding::for_label($label_override.as_bytes()).unwrap(); let encoding = encoding_rs::Encoding::for_label($label_override.as_bytes()).unwrap();
let base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests"); let base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/encoding");
let path = base_path.join(format!("{}_in.txt", $label)); let path = base_path.join(format!("{}_in.txt", $label));
let ref_path = base_path.join(format!("{}_in_ref.txt", $label)); let ref_path = base_path.join(format!("{}_in_ref.txt", $label));
assert!(path.exists()); assert!(path.exists());
@ -1155,7 +1155,7 @@ macro_rules! test_decode {
macro_rules! test_encode { macro_rules! test_encode {
($label:expr, $label_override:expr) => { ($label:expr, $label_override:expr) => {
let encoding = encoding_rs::Encoding::for_label($label_override.as_bytes()).unwrap(); let encoding = encoding_rs::Encoding::for_label($label_override.as_bytes()).unwrap();
let base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests"); let base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/encoding");
let path = base_path.join(format!("{}_out.txt", $label)); let path = base_path.join(format!("{}_out.txt", $label));
let ref_path = base_path.join(format!("{}_out_ref.txt", $label)); let ref_path = base_path.join(format!("{}_out_ref.txt", $label));
assert!(path.exists()); assert!(path.exists());