Permalink
Browse files

Little compiler tests clean-up

  • Loading branch information...
dmajda committed Aug 21, 2010
1 parent 8918d77 commit fea6d851949dea66022eb80b7492d604cf4c69b9
Showing with 2 additions and 18 deletions.
  1. +2 −18 test/compiler-test.js
View
@@ -55,25 +55,9 @@ global.doesNotParseWithPos = function(parser, input, line, column) {
);
};
-/* ===== PEG ===== */
+/* ===== PEG.compiler ===== */
-module("PEG");
-
-test("buildParser reports syntax errors in the grammar", function() {
- throws(
- function() { PEG.buildParser(''); },
- PEG.parser.SyntaxError
- );
-});
-
-test("buildParser allows custom start rule", function() {
- var parser = PEG.buildParser('s = "abcd"', "s");
- parses(parser, "abcd", "abcd");
-});
-
-/* ===== Generated Parser ===== */
-
-module("Generated Parser");
+module("PEG.compiler");
test("choices", function() {
var parser = PEG.buildParser('start = "a" / "b" / "c"');

0 comments on commit fea6d85

Please sign in to comment.