pegjs/test
David Majda f2f88b87ea Make current parse position visible in actions and predicates
The speed/size impact is insignificant.

Speed impact
------------
Before:     214.11 kB/s
After:      214.87 kB/s
Difference: 0.35%

Size impact
-----------
Before:     1042691 b
After:      1046731 b
Difference: 0.38%

(Measured by /tools/impact with Node.js v0.6.6 on x86_64 GNU/Linux.)
2012-03-06 19:55:55 +01:00
..
vendor/qunit Upgrade QUnit to the current master 2011-09-13 11:37:22 +02:00
compiler-test.js Make current parse position visible in actions and predicates 2012-03-06 19:55:55 +01:00
helpers.js Add |expected| and |found| properties to exceptions thrown by parsers 2012-02-12 12:28:59 +01:00
index.html Unify checks and passes 2011-10-03 14:57:09 +02:00
parser-test.js AST: Store rules in an array instead of an object 2012-03-04 17:29:32 +01:00
passes-test.js Fix a bug in param name fixup code for sequences 2012-03-06 08:46:28 +01:00
README Add command-line runner for the test suite 2011-01-25 16:59:32 +01:00
run Use |util| module instead of |sys| 2012-01-07 12:01:11 +01:00

PEG.js Test Suite
=================

This is the PEG.js test suite. It ensures PEG.js works correctly. All tests
should always pass on all supported platforms.

Running in a browser
--------------------

  1. Open the index.html file in your browser.

  2. Watch the test pass (or fail).

Running from a command-line
---------------------------

  1. Make sure you have Node.js installed.

  2. Run the following command:

       ./run

  3. Watch the tests pass (or fail).