diff options
author | teenjuna | 2021-06-25 06:59:06 +0000 |
---|---|---|
committer | GitHub | 2021-06-25 06:59:06 +0000 |
commit | c688288881bbabe0ea98fbae4866054224b8f877 (patch) | |
tree | dacd0c2c3fb787a12a25f31952fd93c5a0654251 /helix-view | |
parent | f2d8ce3415fa2dcc6be283415c42219fd399adb2 (diff) |
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
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/document.rs | 4 | ||||
-rw-r--r-- | helix-view/tests/encoding/big5_in.txt (renamed from helix-view/tests/big5_in.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/big5_in_ref.txt (renamed from helix-view/tests/big5_in_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/big5_out.txt (renamed from helix-view/tests/big5_out.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/big5_out_ref.txt (renamed from helix-view/tests/big5_out_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/euc_kr_in.txt (renamed from helix-view/tests/euc_kr_in.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/euc_kr_in_ref.txt (renamed from helix-view/tests/euc_kr_in_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/euc_kr_out.txt (renamed from helix-view/tests/euc_kr_out.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/euc_kr_out_ref.txt (renamed from helix-view/tests/euc_kr_out_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/gb18030_in.txt (renamed from helix-view/tests/gb18030_in.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/gb18030_in_ref.txt (renamed from helix-view/tests/gb18030_in_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/gb18030_out.txt (renamed from helix-view/tests/gb18030_out.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/gb18030_out_ref.txt (renamed from helix-view/tests/gb18030_out_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/iso_2022_jp_in.txt (renamed from helix-view/tests/iso_2022_jp_in.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/iso_2022_jp_in_ref.txt (renamed from helix-view/tests/iso_2022_jp_in_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/iso_2022_jp_out.txt (renamed from helix-view/tests/iso_2022_jp_out.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/iso_2022_jp_out_ref.txt (renamed from helix-view/tests/iso_2022_jp_out_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/jis0208_in.txt (renamed from helix-view/tests/jis0208_in.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/jis0208_in_ref.txt (renamed from helix-view/tests/jis0208_in_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/jis0208_out.txt (renamed from helix-view/tests/jis0208_out.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/jis0208_out_ref.txt (renamed from helix-view/tests/jis0208_out_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/jis0212_in.txt (renamed from helix-view/tests/jis0212_in.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/jis0212_in_ref.txt (renamed from helix-view/tests/jis0212_in_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/shift_jis_in.txt (renamed from helix-view/tests/shift_jis_in.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/shift_jis_in_ref.txt (renamed from helix-view/tests/shift_jis_in_ref.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/shift_jis_out.txt (renamed from helix-view/tests/shift_jis_out.txt) | 0 | ||||
-rw-r--r-- | helix-view/tests/encoding/shift_jis_out_ref.txt (renamed from helix-view/tests/shift_jis_out_ref.txt) | 0 |
27 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index f26e9c1a..66a67468 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -1136,7 +1136,7 @@ mod test { macro_rules! test_decode { ($label:expr, $label_override:expr) => { 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 ref_path = base_path.join(format!("{}_in_ref.txt", $label)); assert!(path.exists()); @@ -1155,7 +1155,7 @@ mod test { macro_rules! test_encode { ($label:expr, $label_override:expr) => { 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 ref_path = base_path.join(format!("{}_out_ref.txt", $label)); assert!(path.exists()); diff --git a/helix-view/tests/big5_in.txt b/helix-view/tests/encoding/big5_in.txt index 564f9f6a..564f9f6a 100644 --- a/helix-view/tests/big5_in.txt +++ b/helix-view/tests/encoding/big5_in.txt diff --git a/helix-view/tests/big5_in_ref.txt b/helix-view/tests/encoding/big5_in_ref.txt index 06eac731..06eac731 100644 --- a/helix-view/tests/big5_in_ref.txt +++ b/helix-view/tests/encoding/big5_in_ref.txt diff --git a/helix-view/tests/big5_out.txt b/helix-view/tests/encoding/big5_out.txt index 142b833c..142b833c 100644 --- a/helix-view/tests/big5_out.txt +++ b/helix-view/tests/encoding/big5_out.txt diff --git a/helix-view/tests/big5_out_ref.txt b/helix-view/tests/encoding/big5_out_ref.txt index bf741afb..bf741afb 100644 --- a/helix-view/tests/big5_out_ref.txt +++ b/helix-view/tests/encoding/big5_out_ref.txt diff --git a/helix-view/tests/euc_kr_in.txt b/helix-view/tests/encoding/euc_kr_in.txt index 88cb355a..88cb355a 100644 --- a/helix-view/tests/euc_kr_in.txt +++ b/helix-view/tests/encoding/euc_kr_in.txt diff --git a/helix-view/tests/euc_kr_in_ref.txt b/helix-view/tests/encoding/euc_kr_in_ref.txt index 24867df2..24867df2 100644 --- a/helix-view/tests/euc_kr_in_ref.txt +++ b/helix-view/tests/encoding/euc_kr_in_ref.txt diff --git a/helix-view/tests/euc_kr_out.txt b/helix-view/tests/encoding/euc_kr_out.txt index 9f30be6e..9f30be6e 100644 --- a/helix-view/tests/euc_kr_out.txt +++ b/helix-view/tests/encoding/euc_kr_out.txt diff --git a/helix-view/tests/euc_kr_out_ref.txt b/helix-view/tests/encoding/euc_kr_out_ref.txt index bd886e0d..bd886e0d 100644 --- a/helix-view/tests/euc_kr_out_ref.txt +++ b/helix-view/tests/encoding/euc_kr_out_ref.txt diff --git a/helix-view/tests/gb18030_in.txt b/helix-view/tests/encoding/gb18030_in.txt index a5293a98..a5293a98 100644 --- a/helix-view/tests/gb18030_in.txt +++ b/helix-view/tests/encoding/gb18030_in.txt diff --git a/helix-view/tests/gb18030_in_ref.txt b/helix-view/tests/encoding/gb18030_in_ref.txt index bf9188dd..bf9188dd 100644 --- a/helix-view/tests/gb18030_in_ref.txt +++ b/helix-view/tests/encoding/gb18030_in_ref.txt diff --git a/helix-view/tests/gb18030_out.txt b/helix-view/tests/encoding/gb18030_out.txt index 72d5e48e..72d5e48e 100644 --- a/helix-view/tests/gb18030_out.txt +++ b/helix-view/tests/encoding/gb18030_out.txt diff --git a/helix-view/tests/gb18030_out_ref.txt b/helix-view/tests/encoding/gb18030_out_ref.txt index eab1cf0f..eab1cf0f 100644 --- a/helix-view/tests/gb18030_out_ref.txt +++ b/helix-view/tests/encoding/gb18030_out_ref.txt diff --git a/helix-view/tests/iso_2022_jp_in.txt b/helix-view/tests/encoding/iso_2022_jp_in.txt index 78d0beff..78d0beff 100644 --- a/helix-view/tests/iso_2022_jp_in.txt +++ b/helix-view/tests/encoding/iso_2022_jp_in.txt diff --git a/helix-view/tests/iso_2022_jp_in_ref.txt b/helix-view/tests/encoding/iso_2022_jp_in_ref.txt index ef1f7407..ef1f7407 100644 --- a/helix-view/tests/iso_2022_jp_in_ref.txt +++ b/helix-view/tests/encoding/iso_2022_jp_in_ref.txt diff --git a/helix-view/tests/iso_2022_jp_out.txt b/helix-view/tests/encoding/iso_2022_jp_out.txt index 577dc4d2..577dc4d2 100644 --- a/helix-view/tests/iso_2022_jp_out.txt +++ b/helix-view/tests/encoding/iso_2022_jp_out.txt diff --git a/helix-view/tests/iso_2022_jp_out_ref.txt b/helix-view/tests/encoding/iso_2022_jp_out_ref.txt index e0685529..e0685529 100644 --- a/helix-view/tests/iso_2022_jp_out_ref.txt +++ b/helix-view/tests/encoding/iso_2022_jp_out_ref.txt diff --git a/helix-view/tests/jis0208_in.txt b/helix-view/tests/encoding/jis0208_in.txt index a38f7a4c..a38f7a4c 100644 --- a/helix-view/tests/jis0208_in.txt +++ b/helix-view/tests/encoding/jis0208_in.txt diff --git a/helix-view/tests/jis0208_in_ref.txt b/helix-view/tests/encoding/jis0208_in_ref.txt index ef1f7407..ef1f7407 100644 --- a/helix-view/tests/jis0208_in_ref.txt +++ b/helix-view/tests/encoding/jis0208_in_ref.txt diff --git a/helix-view/tests/jis0208_out.txt b/helix-view/tests/encoding/jis0208_out.txt index 76e34647..76e34647 100644 --- a/helix-view/tests/jis0208_out.txt +++ b/helix-view/tests/encoding/jis0208_out.txt diff --git a/helix-view/tests/jis0208_out_ref.txt b/helix-view/tests/encoding/jis0208_out_ref.txt index 42d167a8..42d167a8 100644 --- a/helix-view/tests/jis0208_out_ref.txt +++ b/helix-view/tests/encoding/jis0208_out_ref.txt diff --git a/helix-view/tests/jis0212_in.txt b/helix-view/tests/encoding/jis0212_in.txt index b144707b..b144707b 100644 --- a/helix-view/tests/jis0212_in.txt +++ b/helix-view/tests/encoding/jis0212_in.txt diff --git a/helix-view/tests/jis0212_in_ref.txt b/helix-view/tests/encoding/jis0212_in_ref.txt index 09a72e28..09a72e28 100644 --- a/helix-view/tests/jis0212_in_ref.txt +++ b/helix-view/tests/encoding/jis0212_in_ref.txt diff --git a/helix-view/tests/shift_jis_in.txt b/helix-view/tests/encoding/shift_jis_in.txt index cee6bb57..cee6bb57 100644 --- a/helix-view/tests/shift_jis_in.txt +++ b/helix-view/tests/encoding/shift_jis_in.txt diff --git a/helix-view/tests/shift_jis_in_ref.txt b/helix-view/tests/encoding/shift_jis_in_ref.txt index 19ae14cb..19ae14cb 100644 --- a/helix-view/tests/shift_jis_in_ref.txt +++ b/helix-view/tests/encoding/shift_jis_in_ref.txt diff --git a/helix-view/tests/shift_jis_out.txt b/helix-view/tests/encoding/shift_jis_out.txt index 383584b0..383584b0 100644 --- a/helix-view/tests/shift_jis_out.txt +++ b/helix-view/tests/encoding/shift_jis_out.txt diff --git a/helix-view/tests/shift_jis_out_ref.txt b/helix-view/tests/encoding/shift_jis_out_ref.txt index 25bce72e..25bce72e 100644 --- a/helix-view/tests/shift_jis_out_ref.txt +++ b/helix-view/tests/encoding/shift_jis_out_ref.txt |