test(core): every Ledger command that takes free text refuses a tax id; a replay never does

Entry and reversal descriptions, period names, account codes, document
memos, references, duplicate reasons, line descriptions, the company's
printed details (free text) against the customer's (a party's: any nine
digits), asset descriptions, serials and tags, schedule and recurring
descriptions, draft notes, discard and no-party reasons, receipt
annotations. An invoice number, a ZIP+4, a ten-digit PO and a serial pass.
A journal line an earlier version took replays whatever it holds
(BS-entry-4).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-21 15:09:08 -07:00
1 parent fcc9220de7
commit 0c6b6586fc
3 files changed
+380 -16

No files matched your search

+3 -9
View File
@@ -779,9 +779,7 @@ pub fn count_printed_tins(text: &str) -> usize {
/// script's numeral (outside a replay, which reads ASCII and full-width
/// only).
fn digit_like(ch: char, extended: bool) -> bool {
ch.is_ascii_digit()
|| matches!(ch, '\u{ff10}'..='\u{ff19}')
|| (extended && ch.is_numeric())
ch.is_ascii_digit() || matches!(ch, '\u{ff10}'..='\u{ff19}') || (extended && ch.is_numeric())
}
/// A space between a TIN's groups: the plain one, and outside a replay
@@ -791,12 +789,8 @@ fn tin_space(ch: char, extended: bool) -> bool {
|| (extended
&& matches!(
ch,
'\t' | '\u{a0}'
| '\u{1680}'
| '\u{2000}'..='\u{200a}'
| '\u{202f}'
| '\u{205f}'
| '\u{3000}'
'\t' | '\u{a0}' | '\u{1680}' | '\u{2000}'
..='\u{200a}' | '\u{202f}' | '\u{205f}' | '\u{3000}'
))
}