IF Commons GitHub

logical/conformance/random-model

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

The model cases of the suite: a seeded sequence of operations on a small set of names (so that names collide, move and are removed again) run against the view and against the reference model, with the answers compared at every step and the two trees compared at the end. A difference names the seed, the step and the operation, so that it can be run again.

Source: commons/anyfs-posix/src/logical/conformance/random-model.ts

2 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, the same numbers, on every run and every runtime.

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

modelCasefunction
function modelCase(seed: number, steps: number): Case

A case that runs steps operations from a seed against the view and the model and compares them.

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

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