simplify NoteField init in test; add other bad chars

This commit is contained in:
Damien Elmes 2020-12-28 13:19:37 +10:00
parent 1d15a207bb
commit 14c0066a53

View File

@ -56,12 +56,7 @@ mod test {
#[test] #[test]
fn name() { fn name() {
let mut field = NoteField { let mut field = NoteField::new(" # /^ t:e{s\"t} ");
ord: None,
name: String::new(),
config: NoteFieldConfig::default(),
};
field.name = " # / te{st} ".into();
field.fix_name(); field.fix_name();
assert_eq!(&field.name, "test"); assert_eq!(&field.name, "test");
} }