| 1 |
use super::*; |
| 2 |
|
| 3 |
#[test] |
| 4 |
fn display_error_path_already_exists() { |
| 5 |
let error = FsIOError::PathAlreadyExists("test".to_string()); |
| 6 |
println!("{}", error); |
| 7 |
} |
| 8 |
|
| 9 |
#[test] |
| 10 |
fn display_error_not_file() { |
| 11 |
let error = FsIOError::NotFile("test".to_string()); |
| 12 |
println!("{}", error); |
| 13 |
} |
| 14 |
|
| 15 |
#[test] |
| 16 |
fn display_error_io_error() { |
| 17 |
let error = FsIOError::IOError("test".to_string(), None); |
| 18 |
println!("{}", error); |
| 19 |
} |
| 20 |
|
| 21 |
#[test] |
| 22 |
fn display_error_system_time_error() { |
| 23 |
let error = FsIOError::SystemTimeError("test".to_string(), None); |
| 24 |
println!("{}", error); |
| 25 |
} |