2012-04-30 11:47:04 +02:00
|
|
|
describe("compiler pass |reportMissingRules|", function() {
|
2013-01-13 11:17:44 +01:00
|
|
|
var pass = PEG.compiler.passes.check.reportMissingRules;
|
2012-04-30 11:47:04 +02:00
|
|
|
|
2014-06-07 09:11:00 +02:00
|
|
|
it("reports missing rules", function() {
|
|
|
|
expect(pass).toReportError('start = missing', {
|
|
|
|
message: 'Referenced rule "missing" does not exist.'
|
2012-04-30 11:47:04 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|