'use strict'
var parsers = [
  {
    name: 'acorn',
    options: {
      locations: true,
      onComment: []
    },
    parser: require('acorn')
  },
  {
    name: 'espree',
    options: {
      ecmaVersion: 6,
      loc: true
    },
    parser: require('espree')
  },
  {
    name: 'esprima',
    options: {
      loc: true
    },
    parser: require('esprima')
  }
]
module.exports.forEach = function forEachParser (tests) {
  for (var i = 0; i < parsers.length; i++) {
    var parserName = parsers[i].name
    var parser = parsers[i].parser
    var options = parsers[i].options
    suite('using the ' + parserName + ' parser:', function () {
      tests(parserName, parser, options)
    })
  }
}

@@ -259,32 +259,270 @@
 pree')%0A  %7D,%0A  %7B%0A
+    name: 'espree',%0A    options: %7B%0A      ecmaVersion: 7,%0A      loc: true%0A    %7D,%0A    parser: require('espree')%0A  %7D,%0A  %7B%0A    name: 'espree',%0A    options: %7B%0A      ecmaVersion: 8,%0A      loc: true%0A    %7D,%0A    parser: require('espree')%0A  %7D,%0A  %7B%0A
     name: 'espri

Add unit tests to ecmaVersion 7 and 8