# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="the tokenizer leaves|every kind of edit is a defect|a line of code that an edit changes|apply replaces one span|edits are found at the edges|a comment that never ends" test/mutate.test.mjs
# defect: lib/mutate.mjs:50 word: '-' becomes 'ident'
# exit: 1
# digest: 157f8f5b723e43a3
FAIL  mutate-edits. a planted defect made the check fail at lib/mutate.mjs:50: word: '-' becomes 'ident' (exit 1)
✔ the tokenizer leaves strings, comments, regular expressions and template text alone (3.133833ms)
✖ the tokenizer leaves a regular expression alone after the head of an if, while, for or with and after every operator, and a template whole around a ${} that holds a brace, a backtick, a string or a comment, and ends on code that is cut short (2.275458ms)
✔ every kind of edit is a defect a person makes by hand, and what is not code is not edited (2.046125ms)
✔ edits are found at the edges of the language: in quotes of both kinds, booleans, numbers of every spelling, indexes, and the first parameter of every kind of function (2.286292ms)
✔ a comment that never ends inside a ${} of a template does not stop the tokenizer, and a comment inside it that holds a brace does not close it (344.546542ms)
✔ a line of code that an edit changes is shown whole up to 100 characters, and a longer one is cut at a space, never inside a word (0.600542ms)
✔ apply replaces one span, and sample picks the same defects for the same seed, in the order they appear (0.954708ms)
ℹ tests 7
ℹ suites 0
ℹ pass 6
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1641.949

✖ failing tests:

test at test/mutate.test.mjs:31:1
✖ the tokenizer leaves a regular expression alone after the head of an if, while, for or with and after every operator, and a template whole around a ${} that holds a brace, a backtick, a string or a comment, and ends on code that is cut short (2.275458ms)
  AssertionError [ERR_ASSERTION]: k = s - starts a regular expression: ident:k punct:= ident:s punct:- punct:/ ident:a punct:> ident:b punct:=== ident:true punct:/ punct:. ident:x punct:;
      at TestContext.<anonymous> (file://<project>/test/mutate.test.mjs:44:12)
      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: false,
    expected: true,
    operator: '==',
    diff: 'simple'
  }
