text: describe("Rangr", function () {
      var ranger;
      beforeEach(function () {
          ranger = new Rangr.Parser();
      });
      it("should return empty array on empty input", function () {
          expect(ranger.parse("")).toEqual([]);
          expect(ranger.parse(null)).toEqual([]);
          expect(ranger.parse(undefined)).toEqual([]);
      });
      it("should throw when given NaN", function () {
          expect(function () { return ranger.parse("2,four,8"); }).toThrowError("Cannot parse \"four\".");
      });
      it("should parse properly", function () {
          expect(ranger.parse("2,4-6,8")).toEqual([2, 4, 5, 6, 8]);
      });
      it("should parse properly", function () {
          expect(ranger.parse("1-3,4-5,6,7,8-9,10")).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
      });
      it("should parse properly", function () {
          expect(ranger.parse("1-4,  5 ,6-  10")).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
      });
      describe("Max Exceeded", function () {
          var p;
          beforeEach(function () {
              p = new Rangr.Parser({ max: 4 });
          });
          it("should respect max range", function () {
              expect(function () { return p.parse("2,4-6,8"); }).toThrowError("Range too long.");
          });
          it("should respect max numbers", function () {
              expect(function () { return p.parse("1,2,3,4,5"); }).toThrowError("Range too long.");
          });
      });
      describe("Max too big", function () {
          it("should throw if max is too big", function () {
              expect(function () { return new Rangr.Parser({ max: 10E3 }); }).toThrowError("Rangr options error: max is too big.");
          });
      });
  });
  //# sourceMappingURL=rangerSpec.js.map