mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-17 17:35:16 +01:00
Cleanup
This commit is contained in:
parent
6e96154d86
commit
33eb857a81
1 changed files with 3 additions and 4 deletions
|
@ -95,12 +95,11 @@ pub fn strip_current_dir(pathbuf: &PathBuf) -> &Path {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn strip_current_dir_basic() {
|
||||
use super::strip_current_dir;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use super::strip_current_dir;
|
||||
|
||||
#[test]
|
||||
fn strip_current_dir_basic() {
|
||||
assert_eq!(strip_current_dir(&PathBuf::from("./foo")), Path::new("foo"));
|
||||
assert_eq!(strip_current_dir(&PathBuf::from("foo")), Path::new("foo"));
|
||||
assert_eq!(
|
||||
|
|
Loading…
Reference in a new issue