mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
simplify NoteField init in test; add other bad chars
This commit is contained in:
parent
1d15a207bb
commit
14c0066a53
1 changed files with 1 additions and 6 deletions
|
@ -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 a new issue