test(core): the Lean-model test requires D-73 to have landed; cargo fmt
The engine now refuses a reversal dated before its original (D-73), so the gap the Lean-model test counted (the engine accepting a backdated plain reversal the model refuses) is zero: the recipe sets WANDERBOOKS_D73_LANDED, making any return of it a failure, and the test's error mapping follows the variant's new name (ReversalBeforeOriginal). 256 sequences, 2,204 commands: 0 mismatched, 0 gaps. Also formats the adapter's PICKS list, left unformatted by the S-C7 renumbering. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5de13d480b
commit
3b59f7fec9
3 files changed
+7
-5
No files matched your search
@@ -79,7 +79,11 @@ pub(crate) const PICKS: &[(Area, u32, &str)] = &[
|
||||
(Area::Partner, 12, "labelled-cash-default-or-all"),
|
||||
(Area::Partner, 13, "tax-basis-beside-book"),
|
||||
(Area::Partner, 14, "running-cumulative"),
|
||||
(Area::Partner, 15, "contract-is-property-vendor-paid-is-cash"),
|
||||
(
|
||||
Area::Partner,
|
||||
15,
|
||||
"contract-is-property-vendor-paid-is-cash",
|
||||
),
|
||||
(Area::Partner, 16, "close-at-the-change"),
|
||||
(Area::Partner, 17, "book-amount-with-note"),
|
||||
(Area::Asset, 3, "tag-and-never-reuse"),
|
||||
|
||||
@@ -237,9 +237,7 @@ fn lean_word(e: &LedgerError) -> String {
|
||||
LedgerError::UnknownEntry(_) => "unknown_entry".to_string(),
|
||||
LedgerError::UnknownPeriod(_) => "unknown_period".to_string(),
|
||||
LedgerError::EntryNotPosted(_) => "not_drafted".to_string(),
|
||||
LedgerError::DocumentReversalBeforeOriginal { .. } => {
|
||||
"reversal_before_original".to_string()
|
||||
}
|
||||
LedgerError::ReversalBeforeOriginal { .. } => "reversal_before_original".to_string(),
|
||||
LedgerError::DuplicateAccountCode(_) => "code_taken".to_string(),
|
||||
other => refusal(other),
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ oracle:
|
||||
# engine and the model disagreeing. `cases` sequences, one `lake` call for all of
|
||||
# them (crates/ledger-core/tests/bookspec/lean_model.rs); fails without lake.
|
||||
lean-model cases="64":
|
||||
WANDERBOOKS_REQUIRE_LEAN=1 PROPTEST_CASES={{cases}} cargo test -p ledger-core --test bookspec lean_model -- --nocapture
|
||||
WANDERBOOKS_REQUIRE_LEAN=1 WANDERBOOKS_D73_LANDED=1 PROPTEST_CASES={{cases}} cargo test -p ledger-core --test bookspec lean_model -- --nocapture
|
||||
|
||||
# Fuzz one target for some seconds (nightly; corpus in fuzz/corpus/<target>)
|
||||
fuzz target="fuzz_op_sequence" seconds="300":
|
||||
|
||||
Reference in new issue
Block a user