Compare commits

..

2 commits

Author SHA1 Message Date
ec04821462
hopefully fix github runner compat for tests 2020-01-01 00:20:29 -05:00
4e1db78ed9
documented manual tests 2020-01-01 00:13:29 -05:00
2 changed files with 6 additions and 2 deletions

View file

@ -194,6 +194,10 @@ mod init_logger {
Ok(()) 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] #[test]
#[ignore] #[ignore]
fn caps_to_2_when_log_level_is_lt_2() -> Result<(), BunBunError> { fn caps_to_2_when_log_level_is_lt_2() -> Result<(), BunBunError> {

View file

@ -290,8 +290,8 @@ mod resolve_path {
// How many ".." needed to get to / // How many ".." needed to get to /
let nest_level = current_dir().unwrap().ancestors().count() - 1; let nest_level = current_dir().unwrap().ancestors().count() - 1;
let mut rel_path = PathBuf::from("../".repeat(nest_level)); let mut rel_path = PathBuf::from("../".repeat(nest_level));
rel_path.push("./bin/env"); rel_path.push("./bin/echo");
assert!(resolve_path(rel_path, "echo").is_ok()); assert!(resolve_path(rel_path, "hello").is_ok());
} }
#[test] #[test]