simplify NoteField init in test; add other bad chars
This commit is contained in:
parent
1d15a207bb
commit
14c0066a53
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user