mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
add test
This commit is contained in:
parent
0c9f5b0103
commit
faa5ff8315
1 changed files with 3 additions and 0 deletions
|
|
@ -1330,6 +1330,9 @@ c.odue != 0 then c.odue else c.due end) != {days}) or (c.queue in (1,4) and
|
|||
"((c.did in (1) or c.odid in (1)))"
|
||||
);
|
||||
assert_eq!(&s(ctx, "preset:typo").0, "(false)");
|
||||
|
||||
// strip clozes
|
||||
assert_eq!(&s(ctx, "sc:abcdef").0, "((n.mid = 1581236385343) and (coalesce(process_text(cast(n.sfld as text), 2), n.sfld) like ?1 escape '\\' or coalesce(process_text(n.flds, 2), n.flds) like ?1 escape '\\'))");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue