summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBratSinot <bratsinot@gmail.com>2022-07-25 19:37:44 +0200
committerBratSinot <bratsinot@gmail.com>2022-09-06 12:11:03 +0200
commit6ef2ad4a61692c509b89243aab560e5eaffae6fa (patch)
treea23d7bc52321bc67b0365a93c11fed629cfd6bd8 /tests
parentd655c66ff41b75b6cc20a9176d5f1ef4268deece (diff)
Fix FIXME in de.rs and value.rs.
Diffstat (limited to 'tests')
-rw-r--r--tests/integer_range.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/integer_range.rs b/tests/integer_range.rs
index 7777ef2..e80a2f2 100644
--- a/tests/integer_range.rs
+++ b/tests/integer_range.rs
@@ -13,8 +13,14 @@ fn wrapping_u16() {
.build()
.unwrap();
- let port: u16 = c.get("settings.port").unwrap();
- assert_eq!(port, 464);
+ // FIXME: Can't compare ConfigError, because Unexpected are private.
+ let _port_error = c.get::<u16>("settings.port").unwrap_err();
+ /*
+ assert!(matches!(
+ Err(ConfigError::invalid_type(None, config::Unexpected::U64(66000), "an unsigned 16 bit integer"),)
+ port_error
+ ));
+ */
}
#[test]