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]
fn name() {
let mut field = NoteField {
ord: None,
name: String::new(),
config: NoteFieldConfig::default(),
};
field.name = " # / te{st} ".into();
let mut field = NoteField::new(" # /^ t:e{s\"t} ");
field.fix_name();
assert_eq!(&field.name, "test");
}