test(core): the adapter runs refused dates, amounts, periods, roles, exports, 1099 years and returns
The bookspec examples now spell the input an engine has to refuse, and the adapter takes each through the real books: - a date past 9999 is refused by `Store::create_entry`'s own `try_create_entry` (DateOutOfRange), and a line past one quadrillion by `add_line` (AmountOutOfRange), each on a rehearsal so a refused entry leaves no draft; - a close whose period partly overlaps another creates it through `Store::create_period` and reads PeriodsOverlap; - `assign_role` is `Store::assign_role`, the journaled command, so a role on a header is refused by `check_assign_role` (ControlAccountMismatch) and the chart stays as it was; - an IIF export with an entry on a receivable and a payable account is refused with BS-format-10's word, which is why `export_iif` keeps its typed error; - a 2027 worksheet is refused through `RuleNotKnown` as `unknown_1099_year`, never guessed; - `return_tin` reads the full number from the real `ledger_vault::Vault` the example's `setup.vault_tins` fills, and the books' own record keeps only the last four. The adapter skips sixteen examples now (three more, each for an option wanderbooks did not pick): allow-partial-overlap, carry-the-last-amount and nowhere. Every one of the 95 it runs passes. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
9c299eb768
commit
7ac1e644b2
11 files changed
+178
-14
No files matched your search
Generated
+1
@@ -3977,6 +3977,7 @@ dependencies = [
|
||||
"ledger-import",
|
||||
"ledger-package",
|
||||
"ledger-store",
|
||||
"ledger-vault",
|
||||
"num-bigint",
|
||||
"num-rational",
|
||||
"proptest",
|
||||
|
||||
Reference in new issue
Block a user