From b1cb214e8bc92d4cd1c258d5885224e312b79040 Mon Sep 17 00:00:00 2001 From: David Majda Date: Fri, 20 Apr 2012 19:37:08 +0200 Subject: [PATCH] Jasmine: Convert non-tests of parser's character class rules --- spec/parser.spec.js | 2 ++ test/parser-test.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/parser.spec.js b/spec/parser.spec.js index 5842ef4..ab59e18 100644 --- a/spec/parser.spec.js +++ b/spec/parser.spec.js @@ -125,6 +125,8 @@ describe("PEG.js grammar parser", function() { }); }); + /* Trivial character rules are not tested. */ + /* Canonical identifier is "a". */ it("parses identifier", function() { expect('start = a' ).toParseAs(ruleRefGrammar("a")); diff --git a/test/parser-test.js b/test/parser-test.js index 451ba38..0bcf836 100644 --- a/test/parser-test.js +++ b/test/parser-test.js @@ -315,6 +315,4 @@ test("parses braced", function() { parserParses('start = "a" {aaa}', actionGrammar("aaa")); }); -/* Trivial character rules are not tested. */ - })();