aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorteenjuna2021-06-25 06:59:06 +0000
committerGitHub2021-06-25 06:59:06 +0000
commitc688288881bbabe0ea98fbae4866054224b8f877 (patch)
treedacd0c2c3fb787a12a25f31952fd93c5a0654251 /helix-view/src
parentf2d8ce3415fa2dcc6be283415c42219fd399adb2 (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/src')
-rw-r--r--helix-view/src/document.rs4
1 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());