2015-10-31 16:09:38 +00:00
|
|
|
import javascript from '../../../src/js/parser/javascript/parser.js';
|
2014-12-20 01:53:15 +00:00
|
|
|
|
|
|
|
describe('parser/javascript/repeat_any.js', function() {
|
|
|
|
|
|
|
|
it('parses "*" as a RepeatAny', function() {
|
|
|
|
var parser = new javascript.Parser('*');
|
|
|
|
expect(parser.__consume__repeat_any()).toEqual(jasmine.objectContaining({
|
|
|
|
minimum: 0,
|
|
|
|
maximum: -1
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|