summaryrefslogtreecommitdiffstats
path: root/tests/get_scalar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/get_scalar.rs')
-rw-r--r--tests/get_scalar.rs42
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/get_scalar.rs b/tests/get_scalar.rs
index 08d8507..5d54e18 100644
--- a/tests/get_scalar.rs
+++ b/tests/get_scalar.rs
@@ -14,33 +14,33 @@ fn make() -> Config {
fn test_scalar() {
let c = make();
- assert!(c.get("debug").ok() == Some(true));
- assert!(c.get("production").ok() == Some(false));
+ assert_eq!(c.get("debug").ok(), Some(true));
+ assert_eq!(c.get("production").ok(), Some(false));
}
#[test]
fn test_scalar_type_loose() {
let c = make();
- assert!(c.get("debug").ok() == Some(true));
- assert!(c.get("debug").ok() == Some("true".to_string()));
- assert!(c.get("debug").ok() == Some(1));
- assert!(c.get("debug").ok() == Some(1.0));
-
- assert!(c.get("debug_s").ok() == Some(true));
- assert!(c.get("debug_s").ok() == Some("true".to_string()));
- assert!(c.get("debug_s").ok() == Some(1));
- assert!(c.get("debug_s").ok() == Some(1.0));
-
- assert!(c.get("production").ok() == Some(false));
- assert!(c.get("production").ok() == Some("false".to_string()));
- assert!(c.get("production").ok() == Some(0));
- assert!(c.get("production").ok() == Some(0.0));
-
- assert!(c.get("production_s").ok() == Some(false));
- assert!(c.get("production_s").ok() == Some("false".to_string()));
- assert!(c.get("production_s").ok() == Some(0));
- assert!(c.get("production_s").ok() == Some(0.0));
+ assert_eq!(c.get("debug").ok(), Some(true));
+ assert_eq!(c.get("debug").ok(), Some("true".to_string()));
+ assert_eq!(c.get("debug").ok(), Some(1));
+ assert_eq!(c.get("debug").ok(), Some(1.0));
+
+ assert_eq!(c.get("debug_s").ok(), Some(true));
+ assert_eq!(c.get("debug_s").ok(), Some("true".to_string()));
+ assert_eq!(c.get("debug_s").ok(), Some(1));
+ assert_eq!(c.get("debug_s").ok(), Some(1.0));
+
+ assert_eq!(c.get("production").ok(), Some(false));
+ assert_eq!(c.get("production").ok(), Some("false".to_string()));
+ assert_eq!(c.get("production").ok(), Some(0));
+ assert_eq!(c.get("production").ok(), Some(0.0));
+
+ assert_eq!(c.get("production_s").ok(), Some(false));
+ assert_eq!(c.get("production_s").ok(), Some("false".to_string()));
+ assert_eq!(c.get("production_s").ok(), Some(0));
+ assert_eq!(c.get("production_s").ok(), Some(0.0));
}
#[test]