Skip to content
ToolroomToolroom
← LibraryBuilder · B5

Tests as verification

Build-along · ~10 min at your own keyboard

Anything with rules - a markup calculator, a quantity takeoff, a payment-schedule tool - can carry its own tests: 'given these 3 inputs, the output must be exactly this.' Have Claude write the checks alongside the work, and every future change gets caught the moment it breaks something. A schedule of values that is off by the wrong markup is a hard conversation at draw time.

Your starter: Change-order math tests

Template

Make it yours: Use your own markup structure and three real past change orders as the cases, and add the edge case that once cost you money.

TESTS for the change-order calculator at [file]

Case 1, plain add: labor [hours] at [rate from the contract], material [from the ticket], markup per the contract. Expected total: [worked by hand].
Case 2, credit: a deleted scope line. Expected: a negative number with the markup handled the way the contract says, not the way the add does.
Case 3, edge: a change with no quantity yet. Expected: the calculator refuses and prints [FIELD CHECK: quantity], never a total.

Run all three. Print PASS or FAIL per case and the computed total beside the expected one.
Change nothing in the calculator until I have read the failures. Nothing in the scope the crew has not walked becomes a change order.

The coach checks that what you paste back is your own work. The starter pasted back unchanged won't pass.

Do this

0/4

Share what happened

Paste your 3 hand-written cases and the pass/fail results across both runs.