2014-12-20 01:53:15 +00:00
|
|
|
import javascript from 'src/js/parser/javascript/parser.js';
|
|
|
|
|
2014-12-21 16:24:23 +00:00
|
|
|
describe('parser/javascript/repeat_required.js', function() {
|
2014-12-20 01:53:15 +00:00
|
|
|
|
|
|
|
it('parses "+" as a RepeatRequired', function() {
|
|
|
|
var parser = new javascript.Parser('+');
|
|
|
|
expect(parser.__consume__repeat_required()).toEqual(jasmine.objectContaining({
|
|
|
|
minimum: 1,
|
|
|
|
maximum: -1
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|