# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="a model with no terminal|a step that was not reached in a bounded search|liveness follows a step that the code accepts|a model whose first state is a number|a refusal that hands the state back is counted" test/property-checker-strength.test.mjs
# defect: skills/100x/assets/property-checker.mjs:414 edit: the liveness graph loses the steps that the code accepts against the model
# exit: 1
# digest: 8991015a19a9ecaa
FAIL  checker-verdicts. a planted defect made the check fail at skills/100x/assets/property-checker.mjs:414: edit: the liveness graph loses the steps that the code accepts against the model (exit 1)
✔ a refusal that hands the state back is counted with the ones that raise, and the count is in the answer (256.980375ms)
✔ a model with no terminal calls a state with no step a deadlock, and one that names its stopping points is not told so (284.651458ms)
✔ a step that was not reached in a bounded search is not called impossible, since it may only be unexplored, and in an exhaustive one it is (554.467958ms)
✖ liveness follows a step that the code accepts against the model, so it can lead a run to a state it cannot leave, or back to a state it was in (147.589959ms)
✔ a model whose first state is a number other than zero, or some text, is explored all the same, and is not taken for an object with fields (284.058625ms)
ℹ tests 5
ℹ suites 0
ℹ pass 4
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1832.3795

✖ failing tests:

test at test/property-checker-strength.test.mjs:440:1
✖ liveness follows a step that the code accepts against the model, so it can lead a run to a state it cannot leave, or back to a state it was in (147.589959ms)
  AssertionError [ERR_ASSERTION]: the step with a ! is the one the code takes and the model forbids; without it, done would always be there at 1
  + actual - expected
  
  + 'pass  live:reaches-two. holds from 1 states under strong fairness, exhaustive'
  - 'FAIL  live:reaches-two. from {"n":0} the run can stay away from to forever. It gets stuck at {"n":3}. Steps: go, !go.'
  
      at TestContext.<anonymous> (file://<project>/test/property-checker-strength.test.mjs:457:10)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.processPendingSubtests (node:internal/test_runner/test:974:18) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: 'pass  live:reaches-two. holds from 1 states under strong fairness, exhaustive',
    expected: 'FAIL  live:reaches-two. from {"n":0} the run can stay away from to forever. It gets stuck at {"n":3}. Steps: go, !go.',
    operator: 'strictEqual',
    diff: 'simple'
  }
