This commit is contained in:
sharkdp 2020-04-03 19:25:50 +02:00 committed by David Peter
parent 6e96154d86
commit 33eb857a81

View file

@ -95,12 +95,11 @@ pub fn strip_current_dir(pathbuf: &PathBuf) -> &Path {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::strip_current_dir;
use std::path::{Path, PathBuf};
#[test] #[test]
fn strip_current_dir_basic() { fn strip_current_dir_basic() {
use std::path::{Path, PathBuf};
use super::strip_current_dir;
assert_eq!(strip_current_dir(&PathBuf::from("./foo")), Path::new("foo")); assert_eq!(strip_current_dir(&PathBuf::from("./foo")), Path::new("foo"));
assert_eq!(strip_current_dir(&PathBuf::from("foo")), Path::new("foo")); assert_eq!(strip_current_dir(&PathBuf::from("foo")), Path::new("foo"));
assert_eq!( assert_eq!(