1
0
Fork 0

Add one more test

This commit is contained in:
Daniele Tricoli 2018-11-21 01:21:49 +01:00
parent 7722850bf9
commit bc3c158a12
1 changed files with 3 additions and 0 deletions

View File

@ -78,13 +78,16 @@ fn update() {
let conf = "
Author.name = eriol
Author.like = rust, python
Author.web = example.org
".to_string();
let mut m = BTreeMap::new();
m.insert("Author.like".to_string(), "rust, python, c++".to_string());
m.insert("Author.web".to_string(), "example.org:8080".to_string());
let mut c = parse(&conf).unwrap();
c.update(m);
assert_eq!(c.map["Author.like"], "rust, python, c++");
assert_eq!(c.map["Author.web"], "example.org:8080");
}