function generateTestCasesForParsing(tests) {
    tests.forEach(function(test) {
      it('should return parse(' + test.val + ')=' + test.expect + ' (' + test.reason + ')', function() {
        expect(parser.parse(test.val)).toEqual(test.expect);
      });