mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
docs(spec): an unbounded eventually is violated at run end
This commit is contained in:
1 parent
5b6816956f
commit
fea42e2899
1 file changed
+4
-3
+4
-3
@@ -12,9 +12,10 @@ export function next(predicate: () => boolean): Formula {
|
|||||||
return globalThis.__sanderling__.next(predicate);
|
return globalThis.__sanderling__.next(predicate);
|
||||||
}
|
}
|
||||||
|
|
||||||
// An unbounded `eventually` never forces a violation within a finite run.
|
// An unbounded `eventually` that never fires is violated when the run ends,
|
||||||
// Prefer `.within(n, unit)` when you want the verifier to fail a property
|
// with the reason "eventually never satisfied", so a goal the run does not
|
||||||
// that stalls.
|
// reach is a violation every time. `.within(n, unit)` convicts at the step the
|
||||||
|
// window closes instead of at run end.
|
||||||
export function eventually(predicate: () => boolean): EventuallyFormula {
|
export function eventually(predicate: () => boolean): EventuallyFormula {
|
||||||
return globalThis.__sanderling__.eventually(predicate);
|
return globalThis.__sanderling__.eventually(predicate);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user