From 05381fedfab349d7f58870b1529d8889b7ca1fca Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 14 Apr 2010 20:59:41 +0200 Subject: [PATCH] Fixed the inverted empty character class handling test. --- test/compiler-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/compiler-test.js b/test/compiler-test.js index 312b544..c4c9b7f 100644 --- a/test/compiler-test.js +++ b/test/compiler-test.js @@ -255,9 +255,9 @@ test("classes", function() { doesNotParse(nonEmptyClassParser, ""); doesNotParse(nonEmptyClassParser, "ab"); - var invertedEmptyClassParser = PEG.buildParser('start: []'); + var invertedEmptyClassParser = PEG.buildParser('start: [^]'); doesNotParse(invertedEmptyClassParser, ""); - doesNotParse(invertedEmptyClassParser, "a"); + parses(invertedEmptyClassParser, "a", "a"); doesNotParse(invertedEmptyClassParser, "ab"); var invertedNonEmptyClassParser = PEG.buildParser('start: [^ab-d]');