Files
wanderbooks/crates/ledger-store/tests/fixtures/old-books-writer/Cargo.toml
T
swaitsandClaude Fable 5.2 4c23fade7a test(store): the call frames and an old-books fixture written before call transactions (P15 T1, 8.0.6 items 1 and 2)
books_written_under_older_rules_still_open gains hand-written call frames
through JournalWriter (an ok call, a failed call whose party id is handed
out again, a call that never finished, a call with an answer too long to
keep): only the lines of calls that closed ok are the books'.

old-books/p15_t1_before was written by main 7058fbd2, the version before
this unit (no frames, no request keys), through the old-books-writer
pattern, with that version's expected.json: this version opens it, every
line counts, the figures are the same, it takes no call until the owner's
upgrade and keeps every figure after it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 10:23:47 -07:00

46 lines
2.5 KiB
TOML

# The harness that wrote tests/fixtures/old-books, through the Store API of
# the version that wrote them (main 188c90ea, 2026-10-17), and that version's
# expected.json (bin/expect). Not a workspace member: point the two paths at
# a checkout of the writing version (`git archive 188c90ea | tar -x -C
# wb-main`), then
# cargo run --bin writer -- OUT (the P0 review's thirteen and control)
# cargo run --bin extras -- OUT (the edges of chrono and Decimal)
# cargo run --bin extras2 -- OUT (depreciation for 10000-01; 1,044 drafts)
# cargo run --bin older -- OUT (x_older_rules, with its JournalWriter)
# cargo run --bin s5_before -- OUT (p4_s5_before: run against eeee9658,
# the revision before P4b S5)
# cargo run --bin p2_1099 -- OUT (p2_vendor_1099: P2's 1099 marks, run
# against 9c99a0cf, the revision before P3)
# cargo run --bin p4_before -- OUT (p4_before: run against 25b52580, the
# revision before P4: hand entries posted
# late, a reversal, open drafts, a close)
# cargo run --bin p5_before -- OUT (p5_before: run against b97234ac, the
# revision before P5: a revised
# convention, two decisions, two open items)
# cargo run --bin p15_t1_before -- OUT (p15_t1_before: run against 7058fbd2,
# the revision before P15 T1: a
# receipted opening, a reversal, an
# invoice with a part payment, a bill,
# an open draft, a closed January; no
# call frames, no request keys)
# cargo run --bin expect -- OUT (expected.json beside each journal)
# and copy each journal.jsonl, blobs/ and expected.json into old-books/.
# x_member_closes was written later, the same way, by main 00226a4c
# (2026-10-20, before P3's odd cent): `cargo run --bin members -- OUT`
# (members closes under every rounding rule main wrote; P3 review R-2).
[package]
name = "writer"
version = "0.1.0"
edition = "2024"
[dependencies]
ledger-core = { path = "wb-main/crates/ledger-core" }
ledger-store = { path = "wb-main/crates/ledger-store" }
chrono = "=0.4.45"
rust_decimal = "=1.43.0"
serde_json = "1"
[workspace]
# main's crates (wb-main) keep their own workspace.
exclude = ["wb-main"]