Jasmine: Convert tests of parser's "comment" rule

redux
David Majda 13 years ago
parent b5ccaed491
commit fadaef84dd

@ -68,6 +68,12 @@ describe("PEG.js grammar parser", function() {
});
});
// Canonical comment is "/* comment */".
it("parses comment", function() {
expect('start =// comment\n"abcd"' ).toParseAs(trivialGrammar);
expect('start =/* comment */"abcd"').toParseAs(trivialGrammar);
});
/* Canonical singleLineComment is "// comment". */
it("parses singleLineComment", function() {
expect('start =//\n"abcd"' ).toParseAs(trivialGrammar);

@ -536,10 +536,4 @@ test("parses __", function() {
/* Trivial character class rules are not tested. */
// Canonical comment is "\/* comment *\/".
test("parses comment", function() {
parserParses('start =// comment\n"abcd"', simpleGrammar);
parserParses('start =/* comment */"abcd"', simpleGrammar);
});
})();

Loading…
Cancel
Save