We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b59d410 commit 912f1edCopy full SHA for 912f1ed
tests/log.rs
@@ -45,19 +45,6 @@ fn test_case_sensitivity_json_from_str() {
45
assert_eq!(j.log, log::Level::Error);
46
}
47
48
-#[test]
49
-#[should_panic(expected = "Expected Ok(_) for Err(enum Level does not have variant constructor error)")]
50
-fn test_load_level_lowercase_failing() {
51
- // The following should fail because case sensitivity is not disabled
52
-
53
- let s = r#"{ "log": "error" }"#;
54
- let c = config(s);
55
- assert_eq!(c.get_string("log").unwrap(), "error");
56
- let l = c.get::<log::Level>("log");
57
- assert!(l.is_ok(), "Expected Ok(_) for {:?}", l);
58
- assert_eq!(l.unwrap(), log::Level::Error);
59
-}
60
61
#[test]
62
fn test_load_level_lowercase_succeeding() {
63
let s = r#"{ "log": "error" }"#;
0 commit comments