Skip to content

Commit

Permalink
Add Parser Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorch committed Nov 27, 2015
1 parent 0504880 commit e91b9ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pycep/tests/test_parser.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import unittest
from os import path
import parser
import pycep.parser

SAMPLE_PROGRAMS = path.abspath(path.join(path.dirname(__file__), "programs"))

class TestParser(unittest.TestCase):

def test_helloworld(self):
source = open(path.join(SAMPLE_PROGRAMS, "helloworld.py")).read()
self.assertEquals(parser.suite(source).totuple(),
pycep.parser.suite(source).totuple())

0 comments on commit e91b9ba

Please sign in to comment.