Mercurial > hg > expressionparser
comparison test.py @ 6:4b07bb71c218
add a docstring
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 03 Jun 2011 08:24:48 -0700 |
parents | e55489813783 |
children | ec0e83ec329f |
comparison
equal
deleted
inserted
replaced
5:e55489813783 | 6:4b07bb71c218 |
---|---|
2 | 2 |
3 from expr import parse | 3 from expr import parse |
4 import unittest | 4 import unittest |
5 | 5 |
6 class ExpressionParserUnittest(unittest.TestCase): | 6 class ExpressionParserUnittest(unittest.TestCase): |
7 | 7 """test the expression parser""" |
8 | 8 |
9 def test_BasicValues(self): | 9 def test_BasicValues(self): |
10 self.assertEqual(1, parse("1")) | 10 self.assertEqual(1, parse("1")) |
11 self.assertEqual(100, parse("100")) | 11 self.assertEqual(100, parse("100")) |
12 self.assertEqual(True, parse("true")) | 12 self.assertEqual(True, parse("true")) |