# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="issue 26 the literal way|the search counts a state once|a step the model forbids and the code accepts opens states" test/property-checker-strength.test.mjs
# defect: skills/100x/assets/property-checker.mjs:216 condition: known !== undefined becomes false
# exit: 1
# digest: 14b6ba5ee3702c5e
FAIL  checker-endless. a planted defect made the check fail at skills/100x/assets/property-checker.mjs:216: condition: known !== undefined becomes false (exit 1)
✔ issue 26 the literal way: with the whole guard line deleted the run ends at once with the value that got through, because a missing guard cannot open an endless search (2089.387917ms)
✖ the search counts a state once however many paths reach it, stops at each limit and says which, and shows the first path it found to a failure (299.0515ms)
✔ a step the model forbids and the code accepts opens states of its own, and the search follows MAX_OFF_MODEL of them and no more, however many there are (909.711291ms)
ℹ tests 3
ℹ suites 0
ℹ pass 2
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 4770.22

✖ failing tests:

test at test/property-checker-strength.test.mjs:286:1
✖ the search counts a state once however many paths reach it, stops at each limit and says which, and shows the first path it found to a failure (299.0515ms)
  AssertionError [ERR_ASSERTION]: four states and five steps between them: a state that two paths reach is one state, and the farthest is two steps from the start
  + actual - expected
  
    [
  +   7,
  +   6,
  +   3,
  -   4,
  -   5,
  -   2,
      true,
      []
    ]
  
      at TestContext.<anonymous> (file://<project>/test/property-checker-strength.test.mjs:290: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)
      at Test.postRun (node:internal/test_runner/test:1542:19)
      at node:internal/test_runner/test:1305:31
      at node:internal/process/task_queues:158:7
      at AsyncResource.runInAsyncScope (node:async_hooks:226:14)
      at AsyncResource.runMicrotask (node:internal/process/task_queues:155:8) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: [ 7, 6, 3, true, [] ],
    expected: [ 4, 5, 2, true, [] ],
    operator: 'deepStrictEqual',
    diff: 'simple'
  }
