// Home's figures from the counts read by name, and the places found by name. import CottonKit import Foundation import XCTest @testable import CottonUI // MARK: - The tools are the definitions' final class HomeDataToolsTests: XCTestCase { /// RULE: Every Home figure's value comes from the crate's read.home, and Swift never computes or composes a figure. A figure is either one of the crate's counts (TOOL_FIGURE_READS, its words filled from the count) or an aggregate the crate works out itself — a `summary` (a count, or a sum over a typed amount column with its currency and the shared amount formatter) or a `formula` over those — answered as a finished line under its own read (`tool_figures::worked_figures`, Home's `counts.lines`), which the core keeps out of TOOL_FIGURE_READS. A figure spelt against a read no crate answers is a silence that never lifts. Home figures may be amounts: the figures shape of 970a1a6d1 (Money step 3, ruling 03:55) and the architect's ruling of 17 Oct 2026, 13:5x IST. func testEveryFigureReadsAValueTheCrateAnswers() throws { let source = try SourceSweep.mustRead("crates/cotton-core/src/definitions/mod.rs", ownedBy: "definitions") let start = try XCTUnwrap(source.range(of: "pub const TOOL_FIGURE_READS")) let end = try XCTUnwrap(source.range(of: "];", range: start.upperBound..