/* IMPORTANT
 * This snapshot file is auto-generated, but designed for humans.
 * It should be checked into source control and tracked carefully.
 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
 * Make sure to inspect the output below.  Do not ignore changes!
 */
'use strict'
exports[`test/cmd.js TAP basic bail b w > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail b w > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result {
      ok: true,
      id: 1,
      name: "i'm sure this will be fine",
      fullname: ''
    }
  ],
  [ 'bailout', '' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 0,
      bailout: true,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic bail b w > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail flat > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail flat > output 1`] = `
[
  [
    'assert',
    Result {
      ok: true,
      id: 1,
      name: "i'm sure this will be fine",
      fullname: ''
    }
  ],
  [ 'bailout', '' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 0,
      bailout: true,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic bail flat > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail flat tap > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail flat tap > output 1`] = `
TAP version 13
ok 1 - i'm sure this will be fine
Bail out!


`

exports[`test/cmd.js TAP basic bail flat tap > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail lines > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail lines > output 1`] = `
TAP version 13
ok 1 - i'm sure this will be fine
Bail out!

`

exports[`test/cmd.js TAP basic bail lines > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail no args > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail no args > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result {
      ok: true,
      id: 1,
      name: "i'm sure this will be fine",
      fullname: ''
    }
  ],
  [ 'bailout', '' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 0,
      bailout: true,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic bail no args > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail silent > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail silent > output 1`] = `

`

exports[`test/cmd.js TAP basic bail silent > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail silent strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail silent strict > output 1`] = `

`

exports[`test/cmd.js TAP basic bail silent strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail strict > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result {
      ok: true,
      id: 1,
      name: "i'm sure this will be fine",
      fullname: ''
    }
  ],
  [ 'bailout', '' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 0,
      bailout: true,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic bail strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail t > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail t > output 1`] = `
TAP version 13
ok 1 - i'm sure this will be fine
Bail out!


`

exports[`test/cmd.js TAP basic bail t > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason b w > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason b w > output 1`] = `
[
  [ 'version', 13 ],
  [ 'bailout', 'i have my reasons' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 0,
      pass: 0,
      fail: 0,
      bailout: 'i have my reasons',
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic bail_reason b w > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason flat > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason flat > output 1`] = `
[
  [ 'bailout', 'i have my reasons' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 0,
      pass: 0,
      fail: 0,
      bailout: 'i have my reasons',
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic bail_reason flat > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason flat tap > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason flat tap > output 1`] = `
TAP version 13
Bail out! i have my reasons


`

exports[`test/cmd.js TAP basic bail_reason flat tap > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason lines > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason lines > output 1`] = `
TAP version 13
Bail out! i have my reasons

`

exports[`test/cmd.js TAP basic bail_reason lines > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason no args > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason no args > output 1`] = `
[
  [ 'version', 13 ],
  [ 'bailout', 'i have my reasons' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 0,
      pass: 0,
      fail: 0,
      bailout: 'i have my reasons',
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic bail_reason no args > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason silent > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason silent > output 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason silent > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason silent strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason silent strict > output 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason silent strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason strict > output 1`] = `
[
  [ 'version', 13 ],
  [ 'bailout', 'i have my reasons' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 0,
      pass: 0,
      fail: 0,
      bailout: 'i have my reasons',
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic bail_reason strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic bail_reason t > error 1`] = `
1
`

exports[`test/cmd.js TAP basic bail_reason t > output 1`] = `
TAP version 13
Bail out! i have my reasons


`

exports[`test/cmd.js TAP basic bail_reason t > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail b w > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail b w > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result { ok: true, id: 1, name: 'this is fine', fullname: '' }
  ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: false,
          id: 1,
          name: 'this is fine',
          diag: { not: 'ok', this: 'is fine' },
          fullname: 'child'
        }
      ],
      [ 'bailout', 'this is fine' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 1,
          pass: 0,
          fail: 1,
          bailout: 'this is fine',
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: null,
            end: null,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [
            Result {
              ok: false,
              id: 1,
              name: 'this is fine',
              diag: { not: 'ok', this: 'is fine' },
              fullname: 'child'
            }
          ],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '    blearajn9aefnzxrfoas\\n' ],
  [ 'extra', '               \\n' ],
  [ 'bailout', 'this is fine' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 0,
      bailout: 'this is fine',
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic fail b w > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail flat > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail flat > output 1`] = `
[
  [
    'assert',
    Result { ok: true, id: 1, name: 'this is fine', fullname: '' }
  ],
  [ 'extra', '    blearajn9aefnzxrfoas\\n' ],
  [ 'extra', '               \\n' ],
  [
    'assert',
    Result {
      ok: false,
      id: 2,
      name: 'child > this is fine',
      diag: { not: 'ok', this: 'is fine' },
      fullname: ''
    }
  ],
  [
    'assert',
    Result {
      ok: true,
      id: 3,
      todo: true,
      name: 'child > also fine',
      fullname: ''
    }
  ],
  [
    'assert',
    Result {
      ok: true,
      id: 4,
      todo: 'later is never',
      name: 'child > do later',
      fullname: ''
    }
  ],
  [
    'assert',
    Result {
      ok: true,
      id: 5,
      skip: true,
      name: 'child > rope',
      fullname: ''
    }
  ],
  [
    'assert',
    Result {
      ok: true,
      id: 6,
      skip: 'is piks backward',
      name: 'child > piks',
      tapError: 'test point id 1 appears multiple times',
      previous: Result {
        ok: false,
        id: 2,
        name: 'child > this is fine',
        diag: { not: 'ok', this: 'is fine' },
        fullname: ''
      },
      fullname: ''
    }
  ],
  [ 'comment', '# failed 1 of 2 tests\\n' ],
  [ 'plan', { end: 6, start: 1 } ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 2,
      pass: 1,
      fail: 1,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 2,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        Result {
          ok: false,
          id: 2,
          time: 420,
          name: 'child',
          fullname: ''
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic fail flat > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail flat tap > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail flat tap > output 1`] = `
TAP version 13
ok 1 - this is fine
    blearajn9aefnzxrfoas
               
not ok 2 - child > this is fine
  ---
  not: ok
  this: is fine
  ...
ok 3 - child > also fine # TODO
ok 4 - child > do later # TODO later is never
ok 5 - child > rope # SKIP
ok 6 - child > piks # SKIP is piks backward
# failed 1 of 2 tests
1..6


`

exports[`test/cmd.js TAP basic fail flat tap > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail lines > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail lines > output 1`] = `
TAP version 13
ok 1 - this is fine
# Subtest: child
    not ok 1 - this is fine
      ---
      not: ok
      this: is fine
      ...
    blearajn9aefnzxrfoas
               
    pragma +strict
    pragma -blerg
    ok 2 - also fine # TODO
    ok 3 - do later # TODO later is never
    ok 4 - rope # SKIP
    ok 1 - piks # SKIP is piks backward
    # some comment
    1..4 # plan comment
    # test count(5) != plan(4)
    # failed 2 of 5 tests
    # todo: 2
    # skip: 2
not ok 2 - child # time=420ms
1..2
# failed 1 of 2 tests

`

exports[`test/cmd.js TAP basic fail lines > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail no args > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail no args > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result { ok: true, id: 1, name: 'this is fine', fullname: '' }
  ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: false,
          id: 1,
          name: 'this is fine',
          diag: { not: 'ok', this: 'is fine' },
          fullname: 'child'
        }
      ],
      [ 'pragma', 'strict', true ],
      [ 'pragma', 'blerg', false ],
      [
        'assert',
        Result {
          ok: true,
          id: 2,
          todo: true,
          name: 'also fine',
          fullname: 'child'
        }
      ],
      [
        'assert',
        Result {
          ok: true,
          id: 3,
          todo: 'later is never',
          name: 'do later',
          fullname: 'child'
        }
      ],
      [
        'assert',
        Result {
          ok: true,
          id: 4,
          skip: true,
          name: 'rope',
          fullname: 'child'
        }
      ],
      [
        'assert',
        Result {
          ok: true,
          id: 1,
          skip: 'is piks backward',
          name: 'piks',
          tapError: 'test point id 1 appears multiple times',
          previous: Result {
            ok: false,
            id: 1,
            name: 'this is fine',
            diag: { not: 'ok', this: 'is fine' },
            fullname: 'child'
          },
          fullname: 'child'
        }
      ],
      [ 'comment', '# some comment\\n' ],
      [ 'plan', { start: 1, end: 4, comment: 'plan comment' } ],
      [ 'comment', '# test count(5) != plan(4)\\n' ],
      [ 'comment', '# failed 2 of 5 tests\\n' ],
      [ 'comment', '# todo: 2\\n' ],
      [ 'comment', '# skip: 2\\n' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 5,
          pass: 4,
          fail: 2,
          bailout: false,
          todo: 2,
          skip: 2,
          plan: FinalPlan {
            start: 1,
            end: 4,
            skipAll: false,
            skipReason: '',
            comment: 'plan comment'
          },
          failures: [
            Result {
              ok: false,
              id: 1,
              name: 'this is fine',
              diag: { not: 'ok', this: 'is fine' },
              fullname: 'child'
            },
            Result {
              ok: true,
              id: 1,
              skip: 'is piks backward',
              name: 'piks',
              tapError: 'test point id 1 appears multiple times',
              previous: Result {
                ok: false,
                id: 1,
                name: 'this is fine',
                diag: { not: 'ok', this: 'is fine' },
                fullname: 'child'
              },
              fullname: 'child'
            }
          ],
          time: 420
        }
      ]
    ]
  ],
  [ 'extra', '    blearajn9aefnzxrfoas\\n' ],
  [ 'extra', '               \\n' ],
  [
    'assert',
    Result { ok: false, id: 2, time: 420, name: 'child', fullname: '' }
  ],
  [ 'plan', { start: 1, end: 2 } ],
  [ 'comment', '# failed 1 of 2 tests\\n' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 2,
      pass: 1,
      fail: 1,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 2,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        Result {
          ok: false,
          id: 2,
          time: 420,
          name: 'child',
          fullname: ''
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic fail no args > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail silent > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail silent > output 1`] = `

`

exports[`test/cmd.js TAP basic fail silent > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail silent strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail silent strict > output 1`] = `

`

exports[`test/cmd.js TAP basic fail silent strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail strict > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result { ok: true, id: 1, name: 'this is fine', fullname: '' }
  ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: false,
          id: 1,
          name: 'this is fine',
          diag: { not: 'ok', this: 'is fine' },
          fullname: 'child'
        }
      ],
      [ 'pragma', 'strict', true ],
      [ 'pragma', 'blerg', false ],
      [
        'assert',
        Result {
          ok: true,
          id: 2,
          todo: true,
          name: 'also fine',
          fullname: 'child'
        }
      ],
      [
        'assert',
        Result {
          ok: true,
          id: 3,
          todo: 'later is never',
          name: 'do later',
          fullname: 'child'
        }
      ],
      [
        'assert',
        Result {
          ok: true,
          id: 4,
          skip: true,
          name: 'rope',
          fullname: 'child'
        }
      ],
      [
        'assert',
        Result {
          ok: true,
          id: 1,
          skip: 'is piks backward',
          name: 'piks',
          tapError: 'test point id 1 appears multiple times',
          previous: Result {
            ok: false,
            id: 1,
            name: 'this is fine',
            diag: { not: 'ok', this: 'is fine' },
            fullname: 'child'
          },
          fullname: 'child'
        }
      ],
      [ 'comment', '# some comment\\n' ],
      [ 'plan', { start: 1, end: 4, comment: 'plan comment' } ],
      [ 'comment', '# test count(5) != plan(4)\\n' ],
      [ 'comment', '# failed 4 of 5 tests\\n' ],
      [ 'comment', '# todo: 2\\n' ],
      [ 'comment', '# skip: 2\\n' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 5,
          pass: 4,
          fail: 4,
          bailout: false,
          todo: 2,
          skip: 2,
          plan: FinalPlan {
            start: 1,
            end: 4,
            skipAll: false,
            skipReason: '',
            comment: 'plan comment'
          },
          failures: [
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: 'blearajn9aefnzxrfoas\\n'
            },
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '           \\n'
            },
            Result {
              ok: false,
              id: 1,
              name: 'this is fine',
              diag: { not: 'ok', this: 'is fine' },
              fullname: 'child'
            },
            Result {
              ok: true,
              id: 1,
              skip: 'is piks backward',
              name: 'piks',
              tapError: 'test point id 1 appears multiple times',
              previous: Result {
                ok: false,
                id: 1,
                name: 'this is fine',
                diag: { not: 'ok', this: 'is fine' },
                fullname: 'child'
              },
              fullname: 'child'
            }
          ],
          time: 420
        }
      ]
    ]
  ],
  [ 'extra', '    blearajn9aefnzxrfoas\\n' ],
  [ 'extra', '               \\n' ],
  [
    'assert',
    Result { ok: false, id: 2, time: 420, name: 'child', fullname: '' }
  ],
  [ 'plan', { start: 1, end: 2 } ],
  [ 'comment', '# failed 3 of 2 tests\\n' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 2,
      pass: 1,
      fail: 3,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 2,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: 'blearajn9aefnzxrfoas\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '           \\n'
        },
        Result {
          ok: false,
          id: 2,
          time: 420,
          name: 'child',
          fullname: ''
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic fail strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic fail t > error 1`] = `
1
`

exports[`test/cmd.js TAP basic fail t > output 1`] = `
TAP version 13
ok 1 - this is fine
# Subtest: child
    not ok 1 - this is fine
      ---
      not: ok
      this: is fine
      ...
    pragma +strict
    pragma -blerg
    ok 2 - also fine # TODO
    ok 3 - do later # TODO later is never
    ok 4 - rope # SKIP
    ok 1 - piks # SKIP is piks backward
    # some comment
    1..4 # plan comment
    # test count(5) != plan(4)
    # failed 2 of 5 tests
    # todo: 2
    # skip: 2
    blearajn9aefnzxrfoas
               
not ok 2 - child # time=420ms
1..2
# failed 1 of 2 tests


`

exports[`test/cmd.js TAP basic fail t > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap b w > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap b w > output 1`] = `
[
  [ 'version', 13 ],
  [ 'pragma', 'strict', true ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: false,
          id: 1,
          name: 'test point in child',
          fullname: 'child'
        }
      ],
      [ 'bailout', 'test point in child' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 1,
          pass: 0,
          fail: 3,
          bailout: 'test point in child',
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: null,
            end: null,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  ...\\n'
            },
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  hello: world\\n'
            },
            Result {
              ok: false,
              id: 1,
              name: 'test point in child',
              fullname: 'child'
            }
          ],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '      ...\\n' ],
  [ 'extra', '      hello: world\\n' ],
  [ 'bailout', 'test point in child' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 0,
      pass: 0,
      fail: 2,
      bailout: 'test point in child',
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: null,
        end: null,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  ...\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  hello: world\\n'
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap b w > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap flat > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap flat > output 1`] = `
[
  [ 'pragma', 'strict', true ],
  [ 'extra', '      ...\\n' ],
  [ 'extra', '      hello: world\\n' ],
  [
    'assert',
    Result {
      ok: false,
      id: 1,
      name: 'child > test point in child',
      fullname: ''
    }
  ],
  [ 'comment', '# failed 3 test\\n' ],
  [ 'plan', { end: 1, start: 1 } ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 0,
      fail: 3,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 1,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  ...\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  hello: world\\n'
        },
        Result { ok: false, id: 1, name: 'child', fullname: '' }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap flat > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap flat tap > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap flat tap > output 1`] = `
TAP version 13
pragma +strict
      ...
      hello: world
not ok 1 - child > test point in child
# failed 3 test
1..1


`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap flat tap > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap lines > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap lines > output 1`] = `
TAP version 13
pragma +strict
# Subtest: child
    not ok 1 - test point in child
      ...
      hello: world
    # test count(1) != plan(null)
    # failed 4 test
not ok 1 - child
1..1
# failed 3 test

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap lines > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap no args > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap no args > output 1`] = `
[
  [ 'version', 13 ],
  [ 'pragma', 'strict', true ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: false,
          id: 1,
          name: 'test point in child',
          fullname: 'child'
        }
      ],
      [ 'comment', '# test count(1) != plan(null)\\n' ],
      [ 'comment', '# failed 4 test\\n' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 1,
          pass: 0,
          fail: 4,
          bailout: false,
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: null,
            end: null,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  ...\\n'
            },
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  hello: world\\n'
            },
            Result {
              ok: false,
              id: 1,
              name: 'test point in child',
              fullname: 'child'
            },
            { tapError: 'no plan' }
          ],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '      ...\\n' ],
  [ 'extra', '      hello: world\\n' ],
  [
    'assert',
    Result { ok: false, id: 1, name: 'child', fullname: '' }
  ],
  [ 'plan', { start: 1, end: 1 } ],
  [ 'comment', '# failed 3 test\\n' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 0,
      fail: 3,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 1,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  ...\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  hello: world\\n'
        },
        Result { ok: false, id: 1, name: 'child', fullname: '' }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap no args > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap silent > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap silent > output 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap silent > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap silent strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap silent strict > output 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap silent strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap strict > output 1`] = `
[
  [ 'version', 13 ],
  [ 'pragma', 'strict', true ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: false,
          id: 1,
          name: 'test point in child',
          fullname: 'child'
        }
      ],
      [ 'comment', '# test count(1) != plan(null)\\n' ],
      [ 'comment', '# failed 4 test\\n' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 1,
          pass: 0,
          fail: 4,
          bailout: false,
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: null,
            end: null,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  ...\\n'
            },
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  hello: world\\n'
            },
            Result {
              ok: false,
              id: 1,
              name: 'test point in child',
              fullname: 'child'
            },
            { tapError: 'no plan' }
          ],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '      ...\\n' ],
  [ 'extra', '      hello: world\\n' ],
  [
    'assert',
    Result { ok: false, id: 1, name: 'child', fullname: '' }
  ],
  [ 'plan', { start: 1, end: 1 } ],
  [ 'comment', '# failed 3 test\\n' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 0,
      fail: 3,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 1,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  ...\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  hello: world\\n'
        },
        Result { ok: false, id: 1, name: 'child', fullname: '' }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap t > error 1`] = `
1
`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap t > output 1`] = `
TAP version 13
pragma +strict
# Subtest: child
    not ok 1 - test point in child
    # test count(1) != plan(null)
    # failed 4 test
      ...
      hello: world
not ok 1 - child
1..1
# failed 3 test


`

exports[`test/cmd.js TAP basic failing_child_with_broken_tap t > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly b w > error 1`] = `
0
`

exports[`test/cmd.js TAP basic pass_mostly b w > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result { ok: true, id: 1, name: 'this is fine', fullname: '' }
  ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: true,
          id: 1,
          name: 'this is fine',
          fullname: 'child'
        }
      ],
      [ 'pragma', 'strict', true ],
      [
        'assert',
        Result {
          ok: true,
          id: 2,
          name: 'also fine',
          fullname: 'child'
        }
      ],
      [ 'assert', Result { ok: true, fullname: 'child' } ],
      [ 'comment', '# some comment\\n' ],
      [ 'plan', { start: 1, end: 3 } ],
      [
        'complete',
        FinalResults {
          ok: true,
          count: 3,
          pass: 3,
          fail: 0,
          bailout: false,
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: 1,
            end: 3,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '    blearajn9aefnzxrfoas\\n' ],
  [ 'extra', '               \\n' ],
  [
    'assert',
    Result {
      ok: true,
      id: 2,
      buffered: true,
      name: 'child',
      fullname: ''
    }
  ],
  [ 'plan', { start: 1, end: 2 } ],
  [
    'complete',
    FinalResults {
      ok: true,
      count: 2,
      pass: 2,
      fail: 0,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 2,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic pass_mostly b w > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly flat > error 1`] = `
0
`

exports[`test/cmd.js TAP basic pass_mostly flat > output 1`] = `
[
  [
    'assert',
    Result { ok: true, id: 1, name: 'this is fine', fullname: '' }
  ],
  [ 'extra', '    blearajn9aefnzxrfoas\\n' ],
  [ 'extra', '               \\n' ],
  [
    'assert',
    Result {
      ok: true,
      id: 2,
      name: 'child > this is fine',
      fullname: ''
    }
  ],
  [
    'assert',
    Result { ok: true, id: 3, name: 'child > also fine', fullname: '' }
  ],
  [ 'assert', Result { ok: true, fullname: '', name: 'child', id: 4 } ],
  [ 'plan', { end: 4, start: 1 } ],
  [
    'complete',
    FinalResults {
      ok: true,
      count: 2,
      pass: 2,
      fail: 0,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 2,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic pass_mostly flat > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly flat tap > error 1`] = `
0
`

exports[`test/cmd.js TAP basic pass_mostly flat tap > output 1`] = `
TAP version 13
ok 1 - this is fine
    blearajn9aefnzxrfoas
               
ok 2 - child > this is fine
ok 3 - child > also fine
ok 4 - child
1..4


`

exports[`test/cmd.js TAP basic pass_mostly flat tap > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly lines > error 1`] = `
0
`

exports[`test/cmd.js TAP basic pass_mostly lines > output 1`] = `
TAP version 13
ok 1 - this is fine
ok 2 - child {
    ok 1 - this is fine
    blearajn9aefnzxrfoas
               
    pragma +strict
    ok 2 - also fine
    ok
    # some comment
    1..3
}
1..2

`

exports[`test/cmd.js TAP basic pass_mostly lines > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly no args > error 1`] = `
0
`

exports[`test/cmd.js TAP basic pass_mostly no args > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result { ok: true, id: 1, name: 'this is fine', fullname: '' }
  ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: true,
          id: 1,
          name: 'this is fine',
          fullname: 'child'
        }
      ],
      [ 'pragma', 'strict', true ],
      [
        'assert',
        Result {
          ok: true,
          id: 2,
          name: 'also fine',
          fullname: 'child'
        }
      ],
      [ 'assert', Result { ok: true, fullname: 'child' } ],
      [ 'comment', '# some comment\\n' ],
      [ 'plan', { start: 1, end: 3 } ],
      [
        'complete',
        FinalResults {
          ok: true,
          count: 3,
          pass: 3,
          fail: 0,
          bailout: false,
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: 1,
            end: 3,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '    blearajn9aefnzxrfoas\\n' ],
  [ 'extra', '               \\n' ],
  [
    'assert',
    Result {
      ok: true,
      id: 2,
      buffered: true,
      name: 'child',
      fullname: ''
    }
  ],
  [ 'plan', { start: 1, end: 2 } ],
  [
    'complete',
    FinalResults {
      ok: true,
      count: 2,
      pass: 2,
      fail: 0,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 2,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic pass_mostly no args > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly silent > error 1`] = `
0
`

exports[`test/cmd.js TAP basic pass_mostly silent > output 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly silent > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly silent strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic pass_mostly silent strict > output 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly silent strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic pass_mostly strict > output 1`] = `
[
  [ 'version', 13 ],
  [
    'assert',
    Result { ok: true, id: 1, name: 'this is fine', fullname: '' }
  ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: true,
          id: 1,
          name: 'this is fine',
          fullname: 'child'
        }
      ],
      [ 'pragma', 'strict', true ],
      [
        'assert',
        Result {
          ok: true,
          id: 2,
          name: 'also fine',
          fullname: 'child'
        }
      ],
      [ 'assert', Result { ok: true, fullname: 'child' } ],
      [ 'comment', '# some comment\\n' ],
      [ 'plan', { start: 1, end: 3 } ],
      [ 'comment', '# failed 2 of 3 tests\\n' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 3,
          pass: 3,
          fail: 2,
          bailout: false,
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: 1,
            end: 3,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: 'blearajn9aefnzxrfoas\\n'
            },
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '           \\n'
            }
          ],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '    blearajn9aefnzxrfoas\\n' ],
  [ 'extra', '               \\n' ],
  [
    'assert',
    Result {
      ok: true,
      id: 2,
      buffered: true,
      name: 'child',
      fullname: ''
    }
  ],
  [ 'plan', { start: 1, end: 2 } ],
  [ 'comment', '# failed 2 of 2 tests\\n' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 2,
      pass: 2,
      fail: 2,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 2,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: 'blearajn9aefnzxrfoas\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '           \\n'
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic pass_mostly strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic pass_mostly t > error 1`] = `
0
`

exports[`test/cmd.js TAP basic pass_mostly t > output 1`] = `
TAP version 13
ok 1 - this is fine
# Subtest: child
    ok 1 - this is fine
    pragma +strict
    ok 2 - also fine
    ok
    # some comment
    1..3
    blearajn9aefnzxrfoas
               
ok 2 - child
1..2


`

exports[`test/cmd.js TAP basic pass_mostly t > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap b w > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap b w > output 1`] = `
[
  [ 'version', 13 ],
  [ 'pragma', 'strict', true ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: true,
          id: 1,
          name: 'test point in child',
          fullname: 'child'
        }
      ],
      [ 'comment', '# test count(1) != plan(null)\\n' ],
      [ 'comment', '# failed 3 test\\n' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 1,
          pass: 1,
          fail: 3,
          bailout: false,
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: null,
            end: null,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  ...\\n'
            },
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  hello: world\\n'
            },
            { tapError: 'no plan' }
          ],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '      ...\\n' ],
  [ 'extra', '      hello: world\\n' ],
  [ 'assert', Result { ok: true, id: 1, name: 'child', fullname: '' } ],
  [ 'plan', { start: 1, end: 1 } ],
  [ 'comment', '# failed 2 test\\n' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 2,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 1,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  ...\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  hello: world\\n'
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap b w > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap flat > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap flat > output 1`] = `
[
  [ 'pragma', 'strict', true ],
  [ 'extra', '      ...\\n' ],
  [ 'extra', '      hello: world\\n' ],
  [
    'assert',
    Result {
      ok: true,
      id: 1,
      name: 'child > test point in child',
      fullname: ''
    }
  ],
  [ 'assert', Result { ok: true, id: 2, name: 'child', fullname: '' } ],
  [ 'comment', '# failed 2 test\\n' ],
  [ 'plan', { end: 2, start: 1 } ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 2,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 1,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  ...\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  hello: world\\n'
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap flat > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap flat tap > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap flat tap > output 1`] = `
TAP version 13
pragma +strict
      ...
      hello: world
ok 1 - child > test point in child
ok 2 - child
# failed 2 test
1..2


`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap flat tap > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap lines > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap lines > output 1`] = `
TAP version 13
pragma +strict
# Subtest: child
    ok 1 - test point in child
      ...
      hello: world
    # test count(1) != plan(null)
    # failed 3 test
ok 1 - child
1..1
# failed 2 test

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap lines > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap no args > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap no args > output 1`] = `
[
  [ 'version', 13 ],
  [ 'pragma', 'strict', true ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: true,
          id: 1,
          name: 'test point in child',
          fullname: 'child'
        }
      ],
      [ 'comment', '# test count(1) != plan(null)\\n' ],
      [ 'comment', '# failed 3 test\\n' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 1,
          pass: 1,
          fail: 3,
          bailout: false,
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: null,
            end: null,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  ...\\n'
            },
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  hello: world\\n'
            },
            { tapError: 'no plan' }
          ],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '      ...\\n' ],
  [ 'extra', '      hello: world\\n' ],
  [ 'assert', Result { ok: true, id: 1, name: 'child', fullname: '' } ],
  [ 'plan', { start: 1, end: 1 } ],
  [ 'comment', '# failed 2 test\\n' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 2,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 1,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  ...\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  hello: world\\n'
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap no args > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap silent > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap silent > output 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap silent > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap silent strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap silent strict > output 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap silent strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap strict > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap strict > output 1`] = `
[
  [ 'version', 13 ],
  [ 'pragma', 'strict', true ],
  [
    'child',
    [
      [ 'comment', '# Subtest: child\\n' ],
      [
        'assert',
        Result {
          ok: true,
          id: 1,
          name: 'test point in child',
          fullname: 'child'
        }
      ],
      [ 'comment', '# test count(1) != plan(null)\\n' ],
      [ 'comment', '# failed 3 test\\n' ],
      [
        'complete',
        FinalResults {
          ok: false,
          count: 1,
          pass: 1,
          fail: 3,
          bailout: false,
          todo: 0,
          skip: 0,
          plan: FinalPlan {
            start: null,
            end: null,
            skipAll: false,
            skipReason: '',
            comment: ''
          },
          failures: [
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  ...\\n'
            },
            {
              tapError: 'Non-TAP data encountered in strict mode',
              data: '  hello: world\\n'
            },
            { tapError: 'no plan' }
          ],
          time: null
        }
      ]
    ]
  ],
  [ 'extra', '      ...\\n' ],
  [ 'extra', '      hello: world\\n' ],
  [ 'assert', Result { ok: true, id: 1, name: 'child', fullname: '' } ],
  [ 'plan', { start: 1, end: 1 } ],
  [ 'comment', '# failed 2 test\\n' ],
  [
    'complete',
    FinalResults {
      ok: false,
      count: 1,
      pass: 1,
      fail: 2,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 1,
        skipAll: false,
        skipReason: '',
        comment: ''
      },
      failures: [
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  ...\\n'
        },
        {
          tapError: 'Non-TAP data encountered in strict mode',
          data: '  hello: world\\n'
        }
      ],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap strict > stderr 1`] = `

`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap t > error 1`] = `
1
`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap t > output 1`] = `
TAP version 13
pragma +strict
# Subtest: child
    ok 1 - test point in child
    # test count(1) != plan(null)
    # failed 3 test
      ...
      hello: world
ok 1 - child
1..1
# failed 2 test


`

exports[`test/cmd.js TAP basic passing_child_with_broken_tap t > stderr 1`] = `

`

exports[`test/cmd.js TAP help > error 1`] = `
undefined
`

exports[`test/cmd.js TAP help > output 1`] = `
Usage:
  tap-parser <options>

Parses TAP data from stdin, and outputs the parsed result
in the format specified by the options.  Default output
uses node's \`util.inspect()\` method.

Options:

  -j [<indent>] | --json[=indent]
    Output event data as JSON with the specified indentation (default=2)

  -t | --tap
    Output data as reconstituted TAP based on parsed results

  -l | --lines
    Output each parsed line as it is recognized by the parser

  -b | --bail
    Emit a \`Bail out!\` at the first failed test point encountered

  -B | --no-bail
    Do not bail out at the first failed test point encountered
    (Default)

  -f | --flat
    Flatten all assertions to the top level parser

  -F | --no-flat
    Do not flatten all assertions to the top level parser
    (Default)

  -w | --ignore-all-whitespace
    Skip over blank lines outside of YAML blocks

  -o | --omit-version
    Ignore the \`TAP version 13\` line at the start of tests

  --strict
    Run the parser in strict mode

  --no-strict
    Do not run the parser in strict mode

  -s | --silent
    Do not print output, just exit success/failure based on TAP stream


`

exports[`test/cmd.js TAP help > stderr 1`] = `

`

exports[`test/cmd.js TAP json output formatting --json -f > error 1`] = `
0
`

exports[`test/cmd.js TAP json output formatting --json -f > output 1`] = `
[
  [
    "version",
    13
  ],
  [
    "assert",
    {
      "ok": true,
      "id": 1,
      "name": "child > this is fine",
      "fullname": ""
    }
  ],
  [
    "plan",
    {
      "end": 1,
      "start": 1
    }
  ],
  [
    "complete",
    {
      "ok": true,
      "count": 1,
      "pass": 1,
      "fail": 0,
      "bailout": false,
      "todo": 0,
      "skip": 0,
      "plan": {
        "start": 1,
        "end": 1,
        "skipAll": false,
        "skipReason": "",
        "comment": ""
      },
      "failures": [],
      "time": null
    }
  ]
]

`

exports[`test/cmd.js TAP json output formatting --json -f > stderr 1`] = `

`

exports[`test/cmd.js TAP json output formatting --json 1 > error 1`] = `
0
`

exports[`test/cmd.js TAP json output formatting --json 1 > output 1`] = `
[
 [
  "version",
  13
 ],
 [
  "child",
  [
   [
    "comment",
    "# Subtest: child\\n"
   ],
   [
    "assert",
    {
     "ok": true,
     "id": 1,
     "name": "this is fine",
     "fullname": "child"
    }
   ],
   [
    "plan",
    {
     "start": 1,
     "end": 1
    }
   ],
   [
    "complete",
    {
     "ok": true,
     "count": 1,
     "pass": 1,
     "fail": 0,
     "bailout": false,
     "todo": 0,
     "skip": 0,
     "plan": {
      "start": 1,
      "end": 1,
      "skipAll": false,
      "skipReason": "",
      "comment": ""
     },
     "failures": [],
     "time": null
    }
   ]
  ]
 ],
 [
  "assert",
  {
   "ok": true,
   "id": 1,
   "name": "child",
   "fullname": ""
  }
 ],
 [
  "plan",
  {
   "start": 1,
   "end": 1
  }
 ],
 [
  "complete",
  {
   "ok": true,
   "count": 1,
   "pass": 1,
   "fail": 0,
   "bailout": false,
   "todo": 0,
   "skip": 0,
   "plan": {
    "start": 1,
    "end": 1,
    "skipAll": false,
    "skipReason": "",
    "comment": ""
   },
   "failures": [],
   "time": null
  }
 ]
]

`

exports[`test/cmd.js TAP json output formatting --json 1 > stderr 1`] = `

`

exports[`test/cmd.js TAP json output formatting --json=1 > error 1`] = `
0
`

exports[`test/cmd.js TAP json output formatting --json=1 > output 1`] = `
[
 [
  "version",
  13
 ],
 [
  "child",
  [
   [
    "comment",
    "# Subtest: child\\n"
   ],
   [
    "assert",
    {
     "ok": true,
     "id": 1,
     "name": "this is fine",
     "fullname": "child"
    }
   ],
   [
    "plan",
    {
     "start": 1,
     "end": 1
    }
   ],
   [
    "complete",
    {
     "ok": true,
     "count": 1,
     "pass": 1,
     "fail": 0,
     "bailout": false,
     "todo": 0,
     "skip": 0,
     "plan": {
      "start": 1,
      "end": 1,
      "skipAll": false,
      "skipReason": "",
      "comment": ""
     },
     "failures": [],
     "time": null
    }
   ]
  ]
 ],
 [
  "assert",
  {
   "ok": true,
   "id": 1,
   "name": "child",
   "fullname": ""
  }
 ],
 [
  "plan",
  {
   "start": 1,
   "end": 1
  }
 ],
 [
  "complete",
  {
   "ok": true,
   "count": 1,
   "pass": 1,
   "fail": 0,
   "bailout": false,
   "todo": 0,
   "skip": 0,
   "plan": {
    "start": 1,
    "end": 1,
    "skipAll": false,
    "skipReason": "",
    "comment": ""
   },
   "failures": [],
   "time": null
  }
 ]
]

`

exports[`test/cmd.js TAP json output formatting --json=1 > stderr 1`] = `

`

exports[`test/cmd.js TAP json output formatting -j 1 > error 1`] = `
0
`

exports[`test/cmd.js TAP json output formatting -j 1 > output 1`] = `
[
 [
  "version",
  13
 ],
 [
  "child",
  [
   [
    "comment",
    "# Subtest: child\\n"
   ],
   [
    "assert",
    {
     "ok": true,
     "id": 1,
     "name": "this is fine",
     "fullname": "child"
    }
   ],
   [
    "plan",
    {
     "start": 1,
     "end": 1
    }
   ],
   [
    "complete",
    {
     "ok": true,
     "count": 1,
     "pass": 1,
     "fail": 0,
     "bailout": false,
     "todo": 0,
     "skip": 0,
     "plan": {
      "start": 1,
      "end": 1,
      "skipAll": false,
      "skipReason": "",
      "comment": ""
     },
     "failures": [],
     "time": null
    }
   ]
  ]
 ],
 [
  "assert",
  {
   "ok": true,
   "id": 1,
   "name": "child",
   "fullname": ""
  }
 ],
 [
  "plan",
  {
   "start": 1,
   "end": 1
  }
 ],
 [
  "complete",
  {
   "ok": true,
   "count": 1,
   "pass": 1,
   "fail": 0,
   "bailout": false,
   "todo": 0,
   "skip": 0,
   "plan": {
    "start": 1,
    "end": 1,
    "skipAll": false,
    "skipReason": "",
    "comment": ""
   },
   "failures": [],
   "time": null
  }
 ]
]

`

exports[`test/cmd.js TAP json output formatting -j 1 > stderr 1`] = `

`

exports[`test/cmd.js TAP json output formatting -j > error 1`] = `
0
`

exports[`test/cmd.js TAP json output formatting -j > output 1`] = `
[
  [
    "version",
    13
  ],
  [
    "child",
    [
      [
        "comment",
        "# Subtest: child\\n"
      ],
      [
        "assert",
        {
          "ok": true,
          "id": 1,
          "name": "this is fine",
          "fullname": "child"
        }
      ],
      [
        "plan",
        {
          "start": 1,
          "end": 1
        }
      ],
      [
        "complete",
        {
          "ok": true,
          "count": 1,
          "pass": 1,
          "fail": 0,
          "bailout": false,
          "todo": 0,
          "skip": 0,
          "plan": {
            "start": 1,
            "end": 1,
            "skipAll": false,
            "skipReason": "",
            "comment": ""
          },
          "failures": [],
          "time": null
        }
      ]
    ]
  ],
  [
    "assert",
    {
      "ok": true,
      "id": 1,
      "name": "child",
      "fullname": ""
    }
  ],
  [
    "plan",
    {
      "start": 1,
      "end": 1
    }
  ],
  [
    "complete",
    {
      "ok": true,
      "count": 1,
      "pass": 1,
      "fail": 0,
      "bailout": false,
      "todo": 0,
      "skip": 0,
      "plan": {
        "start": 1,
        "end": 1,
        "skipAll": false,
        "skipReason": "",
        "comment": ""
      },
      "failures": [],
      "time": null
    }
  ]
]

`

exports[`test/cmd.js TAP json output formatting -j > stderr 1`] = `

`

exports[`test/cmd.js TAP unrecognized arg > error 1`] = `
0
`

exports[`test/cmd.js TAP unrecognized arg > output 1`] = `
[
  [ 'plan', { start: 1, end: 0, comment: 'no tests found' } ],
  [
    'complete',
    FinalResults {
      ok: true,
      count: 0,
      pass: 0,
      fail: 0,
      bailout: false,
      todo: 0,
      skip: 0,
      plan: FinalPlan {
        start: 1,
        end: 0,
        skipAll: true,
        skipReason: 'no tests found',
        comment: 'no tests found'
      },
      failures: [],
      time: null
    }
  ]
]

`

exports[`test/cmd.js TAP unrecognized arg > stderr 1`] = `
Unrecognized arg: %j

`
