Insider.Fixtures.SemanticContract (Insider Lab v0.1.0)

Copy Markdown View Source

A deliberately simple semantic fixture used to prove invariant incidents.

A sample violates the contract when its declared total differs from the sum of its item values. The fixture retains the supplied values so test and demo evidence reflects a real application-level logic error.

Summary

Functions

sample(total, items)

@spec sample(integer(), [integer()]) :: map()