##// END OF EJS Templates
rust-config: demonstrate a bug when falling back to non-trivial default values...
Raphaël Gomès -
r51873:d7b2701f default
parent child Browse files
Show More
@@ -773,4 +773,13 b' mod tests {'
773 assert!(config.get_u32(b"section2", b"not-count").is_err());
773 assert!(config.get_u32(b"section2", b"not-count").is_err());
774 assert!(config.get_byte_size(b"section2", b"not-size").is_err());
774 assert!(config.get_byte_size(b"section2", b"not-size").is_err());
775 }
775 }
776
777 #[test]
778 fn test_default_parse() {
779 let config = Config::load_from_explicit_sources(vec![])
780 .expect("expected valid config");
781 let ret = config.get_byte_size(b"cmdserver", b"max-log-size");
782 // FIXME should be `is_ok`
783 assert!(ret.is_err(), "{:?}", ret);
784 }
776 }
785 }
General Comments 0
You need to be logged in to leave comments. Login now