diff options
author | scarf <greenscarf005@gmail.com> | 2023-03-13 11:44:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 10:44:54 +0800 |
commit | 7b9290c92c7f3482713a9d9cbd686f6017aeb8d5 (patch) | |
tree | 77d7b2ecf773a3f5ba116473fdc479e51e422e40 /tests | |
parent | ea56a7c385db4d4e67992d2d13de94ebc2a97234 (diff) |
Localization support (#820)
find locale set with [sys-locale](https://crates.io/crates/sys-locale),
then format with locales.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/integration.rs b/tests/integration.rs index c2d9cca..a43ce35 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -297,7 +297,7 @@ fn test_dereference_link_broken_link_output() { let target = dir.path().join("target"); #[cfg(unix)] - fs::symlink(&target, &link).unwrap(); + fs::symlink(target, &link).unwrap(); // this needs to be tested on Windows // likely to fail because of permission issue @@ -369,7 +369,7 @@ fn test_show_folder_of_symlink_for_long_multi() { let dir = tempdir(); dir.child("target").child("inside").touch().unwrap(); let link = dir.path().join("link"); - fs::symlink("target", &link).unwrap(); + fs::symlink("target", link).unwrap(); cmd() .arg("-l") @@ -552,7 +552,7 @@ fn test_tree_no_dereference() { tmp.child("one.d").create_dir_all().unwrap(); tmp.child("one.d/samplefile").touch().unwrap(); let link = tmp.path().join("link"); - fs::symlink("one.d", &link).unwrap(); + fs::symlink("one.d", link).unwrap(); cmd() .arg("--tree") @@ -571,7 +571,7 @@ fn test_tree_dereference() { tmp.child("one.d").create_dir_all().unwrap(); tmp.child("one.d/samplefile").touch().unwrap(); let link = tmp.path().join("link"); - fs::symlink("one.d", &link).unwrap(); + fs::symlink("one.d", link).unwrap(); cmd() .arg("--ignore-config") |