This commit is contained in:
llama 2025-07-01 07:59:25 +08:00
parent 0c9f5b0103
commit faa5ff8315
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -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]