flake8 compliance

This commit is contained in:
Loic Nageleisen 2014-01-24 21:35:12 +01:00
parent e8a036bb16
commit 992f774baa
4 changed files with 8 additions and 3 deletions

View file

@ -1,6 +1,7 @@
from unittest import TestCase
import wasp.parser as parser
class TestParser(TestCase):
def test_atom(self):
self.assertEqual(str(parser.parse("1")), "1")
@ -28,12 +29,14 @@ class TestParser(TestCase):
def test_lists_in_list(self):
self.assertEqual(str(parser.parse("(+ (* 4 5) (* 3 2))")),
"(+ . ((* . (4 . (5 . NIL))) . ((* . (3 . (2 . NIL))) . NIL)))")
"(+ . ((* . (4 . (5 . NIL))) " +
". ((* . (3 . (2 . NIL))) . NIL)))")
def test_quote_in_list(self):
self.assertEqual(str(parser.parse("(+ '1 (* 3 2))")),
"(+ . ('1 . ((* . (3 . (2 . NIL))) . NIL)))")
if __name__ == '__main__':
import unittest
unittest.main()