# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="helpers of an earlier run|damaged helper ledger|helper rows are counted" test/closing-line.test.mjs
# defect: lib/spend.mjs:20 word: 'utf8' becomes 'object'
# exit: 1
# digest: 709914b8fdc8e2a4
FAIL  closing-helpers. a planted defect made the check fail at lib/spend.mjs:20: word: 'utf8' becomes 'object' (exit 1)
✖ with no lineup written the line names only what 100x recorded, and helpers of an earlier run are not counted (9934.719583ms)
✖ a damaged helper ledger and a run with no start time still print a line (11683.391916ms)
✖ helper rows are counted from the start of the run, the most used model first, and a tie by name (8.033333ms)
ℹ tests 3
ℹ suites 0
ℹ pass 0
ℹ fail 3
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 25066.509125

✖ failing tests:

test at test/closing-line.test.mjs:33:1
✖ with no lineup written the line names only what 100x recorded, and helpers of an earlier run are not counted (9934.719583ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
  + actual - expected
  
  + '100x: no helpers; judge muse-wonder-1.0. green light'
  - '100x: 2 helper runs; judge muse-wonder-1.0; this-runs-model x2. green light'
  
      at TestContext.<anonymous> (file://<project>/test/closing-line.test.mjs:42: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: '100x: no helpers; judge muse-wonder-1.0. green light',
    expected: '100x: 2 helper runs; judge muse-wonder-1.0; this-runs-model x2. green light',
    operator: 'strictEqual',
    diff: 'simple'
  }

test at test/closing-line.test.mjs:185:1
✖ a damaged helper ledger and a run with no start time still print a line (11683.391916ms)
  AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^100x: 2 helper runs; judge muse-wonder-1\.0; (?:odd model x1, unnamed model x1|unnamed model x1, odd model x1)\. green light$/. Input:
  
  '100x: no helpers; judge muse-wonder-1.0. green light'
  
      at TestContext.<anonymous> (file://<project>/test/closing-line.test.mjs:192: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: true,
    code: 'ERR_ASSERTION',
    actual: '100x: no helpers; judge muse-wonder-1.0. green light',
    expected: /^100x: 2 helper runs; judge muse-wonder-1\.0; (?:odd model x1, unnamed model x1|unnamed model x1, odd model x1)\. green light$/,
    operator: 'match',
    diff: 'simple'
  }

test at test/closing-line.test.mjs:200:1
✖ helper rows are counted from the start of the run, the most used model first, and a tie by name (8.033333ms)
  AssertionError [ERR_ASSERTION]: a row at the start counts, one before it does not, a row with no readable time counts
  + actual - expected
  
  + []
  - [
  -   {
  -     model: 'beta',
  -     runs: 2
  -   },
  -   {
  -     model: 'zeta',
  -     runs: 2
  -   },
  -   {
  -     model: 'alpha',
  -     runs: 1
  -   },
  -   {
  -     model: 'gamma',
  -     runs: 1
  -   }
  - ]
  
      at TestContext.<anonymous> (file://<project>/test/closing-line.test.mjs:206: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 Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: [],
    expected: [ { model: 'beta', runs: 2 }, { model: 'zeta', runs: 2 }, { model: 'alpha', runs: 1 }, { model: 'gamma', runs: 1 } ],
    operator: 'deepStrictEqual',
    diff: 'simple'
  }
