# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="a row is stale by the bytes of the code it covers" test/ledger-laws.test.mjs
# defect: lib/verify.mjs:73 edit: the time a file was written is part of its hash, so touching a covered file makes the row stale
# exit: 1
# digest: 80a510faf762a49f
FAIL  ledger-stale-by-bytes. a planted defect made the check fail at lib/verify.mjs:73: edit: the time a file was written is part of its hash, so touching a covered file makes the row stale (exit 1)
✖ a row is stale by the bytes of the code it covers and by nothing else: touching a file or rewriting it the same leaves it alone, and undoing an edit restores it (2434.701042ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 3130.950042

✖ failing tests:

test at test/ledger-laws.test.mjs:101:1
✖ a row is stale by the bytes of the code it covers and by nothing else: touching a file or rewriting it the same leaves it alone, and undoing an edit restores it (2434.701042ms)
  AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^holds +order-money/m. Input:
  
  'stale      order-money  invariant, exhaustive  the covered code changed after the last sync. Read what changed, run the check, then sync\n'
  
      at holds (file://<project>/test/ledger-laws.test.mjs:105:30)
      at TestContext.<anonymous> (file://<project>/test/ledger-laws.test.mjs:109:3)
      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: 'stale      order-money  invariant, exhaustive  the covered code changed after the last sync. Read what changed, run the check, then sync\n',
    expected: /^holds +order-money/m,
    operator: 'match',
    diff: 'simple'
  }
