productionKitTests.testSuite
README.md
productionKitTests
Checks productionKit's rules without touching real wallets or saved towns: big numbers in all five styles (to 1e303 and past it), rates and durations; the catalogue's twelve kinds, looks and styles and their aliases; producers at their rate; converters starving without input and stopping when storage is full, and a warehouse lifting the limit; the lumber mill -> sawmill -> market chain earning coins; markets selling what they have; queues finishing in order, refusing when full or short, and refunding a cancelled job; upgrades; scaled offline catch-up; and the works (the authoritative machine) against a fake store, fake players and a fake bank: queue money charged and refunded, retried requests not charged twice, other players refused on a player's own buildings, hand-written records put back, coins paid to members, state coming back from the store, offline time caught up with a cap and a welcome-back summary, and switching a building's kind with one setting; and that a town reads as a name (Millbrook, Your Town, a name the game gives), never as its id. Also checks that every building kind draws in both looks and that every display, welcome-back screen and queue panel builds. Run it in edit mode: tools.use("tests", "run", { suite = "productionKitTests" }).