diff options
author | max99x <max99x@gmail.com> | 2011-08-24 04:25:31 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-24 04:25:31 +0300 |
commit | cfcf669f7d0239e052ba2387eee94a64912e9f09 (patch) | |
tree | e6ebce2c8a393d3675cc229cfb2a8ac76846d808 /tests/runner.py | |
parent | 7eb19241b1ff145a51912bfa02ffda7d913494d3 (diff) |
Added eliminator test to the runner.
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 77aa0d4f..17403146 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -3786,6 +3786,15 @@ TT = %s del T # T is just a shape for the specific subclasses, we don't test it itself + class OtherTests(RunnerCore): + def test_eliminator(self): + coffee = path_from_root('tools', 'eliminator', 'node_modules', 'coffee-script', 'bin', 'coffee') + eliminator = path_from_root('tools', 'eliminator', 'eliminator.coffee') + input = open(path_from_root('tools', 'eliminator', 'eliminator-test.js')).read() + expected = open(path_from_root('tools', 'eliminator', 'eliminator-test-output.js')).read() + output = Popen([coffee, eliminator], stdin=PIPE, stdout=PIPE, stderr=PIPE).communicate(input)[0] + self.assertEquals(output, expected) + else: # Benchmarks |