on master help sign in
Move helix-view/tests/*txt files to txts subdirectory (#372)
c688288teenjuna
helix-view/src/document.rs+2−2
@@ -1136,7 +1136,7 @@ mod test {
1136 macro_rules! test_decode {
1136 macro_rules! test_decode {
1137 ($label:expr, $label_override:expr) => {
1137 ($label:expr, $label_override:expr) => {
1138 let encoding = encoding_rs::Encoding::for_label($label_override.as_bytes()).unwrap();
1138 let encoding = encoding_rs::Encoding::for_label($label_override.as_bytes()).unwrap();
1139− let base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests");
1139+ let base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/encoding");
1140 let path = base_path.join(format!("{}_in.txt", $label));
1140 let path = base_path.join(format!("{}_in.txt", $label));
1141 let ref_path = base_path.join(format!("{}_in_ref.txt", $label));
1141 let ref_path = base_path.join(format!("{}_in_ref.txt", $label));
1142 assert!(path.exists());
1142 assert!(path.exists());
@@ -1155,7 +1155,7 @@ mod test {
1155 macro_rules! test_encode {
1155 macro_rules! test_encode {
1156 ($label:expr, $label_override:expr) => {
1156 ($label:expr, $label_override:expr) => {
1157 let encoding = encoding_rs::Encoding::for_label($label_override.as_bytes()).unwrap();
1157 let encoding = encoding_rs::Encoding::for_label($label_override.as_bytes()).unwrap();
1158− let base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests");
1158+ let base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/encoding");
1159 let path = base_path.join(format!("{}_out.txt", $label));
1159 let path = base_path.join(format!("{}_out.txt", $label));
1160 let ref_path = base_path.join(format!("{}_out_ref.txt", $label));
1160 let ref_path = base_path.join(format!("{}_out_ref.txt", $label));
1161 assert!(path.exists());
1161 assert!(path.exists());
helix-view/tests/big5_in.txt → helix-view/tests/encoding/big5_in.txtrenamed

The content is the same.

helix-view/tests/big5_in_ref.txt → helix-view/tests/encoding/big5_in_ref.txtrenamed

The content is the same.

helix-view/tests/big5_out.txt → helix-view/tests/encoding/big5_out.txtrenamed

The content is the same.

helix-view/tests/big5_out_ref.txt → helix-view/tests/encoding/big5_out_ref.txtrenamed

The content is the same.

helix-view/tests/euc_kr_in.txt → helix-view/tests/encoding/euc_kr_in.txtrenamed

The content is the same.

helix-view/tests/euc_kr_in_ref.txt → helix-view/tests/encoding/euc_kr_in_ref.txtrenamed

The content is the same.

helix-view/tests/euc_kr_out.txt → helix-view/tests/encoding/euc_kr_out.txtrenamed

The content is the same.

helix-view/tests/euc_kr_out_ref.txt → helix-view/tests/encoding/euc_kr_out_ref.txtrenamed

The content is the same.

helix-view/tests/gb18030_in.txt → helix-view/tests/encoding/gb18030_in.txtrenamed

The content is the same.

helix-view/tests/gb18030_in_ref.txt → helix-view/tests/encoding/gb18030_in_ref.txtrenamed

The content is the same.

helix-view/tests/gb18030_out.txt → helix-view/tests/encoding/gb18030_out.txtrenamed

The content is the same.

helix-view/tests/gb18030_out_ref.txt → helix-view/tests/encoding/gb18030_out_ref.txtrenamed

The content is the same.

helix-view/tests/iso_2022_jp_in.txt → helix-view/tests/encoding/iso_2022_jp_in.txtrenamed

The content is the same.

helix-view/tests/iso_2022_jp_in_ref.txt → helix-view/tests/encoding/iso_2022_jp_in_ref.txtrenamed

The content is the same.

helix-view/tests/iso_2022_jp_out.txt → helix-view/tests/encoding/iso_2022_jp_out.txtrenamed

The content is the same.

helix-view/tests/iso_2022_jp_out_ref.txt → helix-view/tests/encoding/iso_2022_jp_out_ref.txtrenamed

The content is the same.

helix-view/tests/jis0208_in.txt → helix-view/tests/encoding/jis0208_in.txtrenamed

The content is the same.

helix-view/tests/jis0208_in_ref.txt → helix-view/tests/encoding/jis0208_in_ref.txtrenamed

The content is the same.

helix-view/tests/jis0208_out.txt → helix-view/tests/encoding/jis0208_out.txtrenamed

The content is the same.

helix-view/tests/jis0208_out_ref.txt → helix-view/tests/encoding/jis0208_out_ref.txtrenamed

The content is the same.

helix-view/tests/jis0212_in.txt → helix-view/tests/encoding/jis0212_in.txtrenamed

The content is the same.

helix-view/tests/jis0212_in_ref.txt → helix-view/tests/encoding/jis0212_in_ref.txtrenamed

The content is the same.

helix-view/tests/shift_jis_in.txt → helix-view/tests/encoding/shift_jis_in.txtrenamed

The content is the same.

helix-view/tests/shift_jis_in_ref.txt → helix-view/tests/encoding/shift_jis_in_ref.txtrenamed

The content is the same.

helix-view/tests/shift_jis_out.txt → helix-view/tests/encoding/shift_jis_out.txtrenamed

The content is the same.

helix-view/tests/shift_jis_out_ref.txt → helix-view/tests/encoding/shift_jis_out_ref.txtrenamed

The content is the same.