Mercurial > hg > expressionparser
comparison test.py @ 13:ec0e83ec329f
allow both kinds of strings
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 03 Jun 2011 11:15:40 -0700 |
parents | 4b07bb71c218 |
children | facdc089ffbc |
comparison
equal
deleted
inserted
replaced
12:835efd8acb04 | 13:ec0e83ec329f |
---|---|
11 self.assertEqual(100, parse("100")) | 11 self.assertEqual(100, parse("100")) |
12 self.assertEqual(True, parse("true")) | 12 self.assertEqual(True, parse("true")) |
13 self.assertEqual(False, parse("false")) | 13 self.assertEqual(False, parse("false")) |
14 self.assertEqual("", parse('""')) | 14 self.assertEqual("", parse('""')) |
15 self.assertEqual("foo bar", parse('"foo bar"')) | 15 self.assertEqual("foo bar", parse('"foo bar"')) |
16 self.assertEqual("foo bar", parse("'foo bar'")) | |
16 self.assertEqual(1, parse("foo", foo=1)) | 17 self.assertEqual(1, parse("foo", foo=1)) |
17 self.assertEqual(True, parse("bar", bar=True)) | 18 self.assertEqual(True, parse("bar", bar=True)) |
18 self.assertEqual("xyz", parse("abc123", abc123="xyz")) | 19 self.assertEqual("xyz", parse("abc123", abc123="xyz")) |
19 | 20 |
20 def test_Equality(self): | 21 def test_Equality(self): |