Compare commits
2 commits
fd941b014a
...
ec04821462
Author | SHA1 | Date | |
---|---|---|---|
ec04821462 | |||
4e1db78ed9 |
2 changed files with 6 additions and 2 deletions
|
@ -194,6 +194,10 @@ mod init_logger {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
// The following tests work but because the log crate is global, initializing
|
||||
// the logger more than once (read: testing it more than once) leads to a
|
||||
// panic. These ignored tests must be manually tested.
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn caps_to_2_when_log_level_is_lt_2() -> Result<(), BunBunError> {
|
||||
|
|
|
@ -290,8 +290,8 @@ mod resolve_path {
|
|||
// How many ".." needed to get to /
|
||||
let nest_level = current_dir().unwrap().ancestors().count() - 1;
|
||||
let mut rel_path = PathBuf::from("../".repeat(nest_level));
|
||||
rel_path.push("./bin/env");
|
||||
assert!(resolve_path(rel_path, "echo").is_ok());
|
||||
rel_path.push("./bin/echo");
|
||||
assert!(resolve_path(rel_path, "hello").is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue