IF Commons GitHub

logical/conformance/model

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0005-anyfs-conformance FR-002

The case that compares a store with a model: a long sequence of operations, chosen by a seeded generator, is made on the store and on a model that holds the laws of a store in a few lines, and every answer is compared (the kind of answer, the bytes, the flags, the order of a list, and whether a revision changed where the bytes did and not otherwise). A failure names the seed and the step, so that it can be run again.

Source: commons/anyfs/src/logical/conformance/model.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

generatorfunction
function generator(seed: number): () => number

A generator of numbers from a seed: the same seed gives the same numbers.

Imported by 9 tests of the run (9 passed, 0 failed): the library's results

modelCasefunctionno test imports it
function modelCase(seed: number, steps: number): Case

A case: steps operations from seed, compared with the model.

Titles, headings, exports, tables, columns and requirements. Esc closes.