test: the alias sweep reaches the two tests that built their arguments in a closure and a loop (P5)

projects_parity built both its invoices and its bill through one closure that
passed party_id, and spec_projects looped over (invoice, bill) with one
spelling; with the aliases gone each names customer or vendor as its tool
takes it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
This commit is contained in:
swaitsandClaude Fable 5.1 committed 2026-10-29 15:48:42 -06:00
1 parent 632938fa97
commit 8e683942a2
2 files changed
+15 -6

No files matched your search

+5 -2
View File
@@ -230,8 +230,8 @@ fn invoiced_and_billed_project_figures_are_the_same_in_the_viewer_and_from_the_s
server.tool("books.add_project", json!({"name": "Heron"}));
let cedar = server.tool("books.add_customer", json!({"name": "Cedar Client"}))["id"].clone();
let dana = server.tool("books.add_vendor", json!({"name": "Dana Illustration"}))["id"].clone();
let doc = |party: &Value, date: &str, lines: Value| {
json!({"party_id": party, "date": date, "due_date": date, "lines": lines,
let doc = |key: &str, party: &Value, date: &str, lines: Value| {
json!({key: party.to_string(), "date": date, "due_date": date, "lines": lines,
"confirmed": true})
};
server.tool(
@@ -241,6 +241,7 @@ fn invoiced_and_billed_project_figures_are_the_same_in_the_viewer_and_from_the_s
let inv = server.tool(
"books.create_invoice",
doc(
"customer",
&cedar,
"2026-02-02",
json!([
@@ -253,6 +254,7 @@ fn invoiced_and_billed_project_figures_are_the_same_in_the_viewer_and_from_the_s
let inv2 = server.tool(
"books.create_invoice",
doc(
"customer",
&cedar,
"2026-05-04",
json!([{"description": "Build", "amount": "4321.09", "class": "kestrel"}]),
@@ -262,6 +264,7 @@ fn invoiced_and_billed_project_figures_are_the_same_in_the_viewer_and_from_the_s
.wire
.upload(b"Dana's invoice", "dana.pdf", "application/pdf", "receipt");
let mut bill_args = doc(
"vendor",
&dana,
"2026-03-09",
json!([