mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-13 21:52:37 +00:00
Remove incorrect comments in no_sort test
This commit is contained in:
parent
6c47087cd3
commit
93af717e70
1 changed files with 0 additions and 5 deletions
|
@ -301,22 +301,18 @@ mod tests {
|
|||
fn test_sort_assemble_sorters_no_sort() {
|
||||
let tmp_dir = tempdir().expect("failed to create temp dir");
|
||||
|
||||
// Create the file with rs extension;
|
||||
let path_a = tmp_dir.path().join("aaa.aa");
|
||||
File::create(&path_a).expect("failed to create file");
|
||||
let meta_a = Meta::from_path(&path_a, false).expect("failed to get meta");
|
||||
|
||||
// Create the file with rs extension;
|
||||
let path_b = tmp_dir.path().join("aaa");
|
||||
create_dir(&path_b).expect("failed to create dir");
|
||||
let meta_b = Meta::from_path(&path_b, false).expect("failed to get meta");
|
||||
|
||||
// Create the file with js extension;
|
||||
let path_c = tmp_dir.path().join("zzz.zz");
|
||||
File::create(&path_c).expect("failed to create file");
|
||||
let meta_c = Meta::from_path(&path_c, false).expect("failed to get meta");
|
||||
|
||||
// Create the file with txt extension;
|
||||
let path_d = tmp_dir.path().join("zzz");
|
||||
create_dir(&path_d).expect("failed to create dir");
|
||||
let meta_d = Meta::from_path(&path_d, false).expect("failed to get meta");
|
||||
|
@ -324,7 +320,6 @@ mod tests {
|
|||
let mut flags = Flags::default();
|
||||
flags.sorting.column = SortColumn::None;
|
||||
|
||||
// Sort by extension
|
||||
let sorter = assemble_sorters(&flags);
|
||||
assert_eq!(by_meta(&sorter, &meta_a, &meta_b), Ordering::Equal);
|
||||
|
||||
|
|
Loading…
Reference in a new issue