# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="a failing run the tool made is tied|a failing run is a header and a body" test/mutate.test.mjs
# defect: lib/verify.mjs:85 arithmetic: + becomes -
# exit: 1
# digest: ac576bdea57bb2da
FAIL  red-proof. a planted defect made the check fail at lib/verify.mjs:85: arithmetic: + becomes - (exit 1)
✖ a failing run the tool made is tied to the row command and to a digest, and one typed by hand still counts but is named (52271.126ms)
✖ a failing run is a header and a body, the digest covers the body, and a run counts as passing only when it exits 0 with no FAIL line (0.6965ms)
ℹ tests 2
ℹ suites 0
ℹ pass 0
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 55732.083625

✖ failing tests:

test at test/mutate.test.mjs:542:1
✖ a failing run the tool made is tied to the row command and to a digest, and one typed by hand still counts but is named (52271.126ms)
  AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^unproven +pay-rules.*verify\/red\/pay-rules\.txt was changed after 100x verify mutate wrote it, so its digest does not match\. Run 100x verify mutate pay-rules again/m. Input:
  
  'unproven   pay-rules  precondition, sampled  verify/red/pay-rules.txt says 100x verify mutate made it, and its header is cut short. Run 100x verify mutate pay-rules again\n'
  
      at TestContext.<anonymous> (file://<project>/test/mutate.test.mjs:574:10)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.start (node:internal/test_runner/test:1262:17)
      at startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: 'unproven   pay-rules  precondition, sampled  verify/red/pay-rules.txt says 100x verify mutate made it, and its header is cut short. Run 100x verify mutate pay-rules again\n',
    expected: /^unproven +pay-rules.*verify\/red\/pay-rules\.txt was changed after 100x verify mutate wrote it, so its digest does not match\. Run 100x verify mutate pay-rules again/m,
    operator: 'match',
    diff: 'simple'
  }

test at test/mutate.test.mjs:589:1
✖ a failing run is a header and a body, the digest covers the body, and a run counts as passing only when it exits 0 with no FAIL line (0.6965ms)
  AssertionError [ERR_ASSERTION]: each header field is one line
      at TestContext.<anonymous> (file://<project>/test/mutate.test.mjs:592: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 Test.run (node:internal/test_runner/test:1467:12)
      at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: '# made by 100x verify mutate\n# command: node check.mjs\n# defect: lib/a.mjs:3 compare: < becomes <=\nNaN\n# digest: 3f824399b529686d\nFAIL  a. it broke\nsecond line\n',
    expected: /^# made by 100x verify mutate\n# command: node check\.mjs\n# defect: lib\/a\.mjs:3 compare: < becomes <=\n# exit: 1\n# digest: [0-9a-f]{16}\nFAIL {2}a\. it broke\nsecond line\n$/,
    operator: 'match',
    diff: 'simple'
  }
