Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredly committed Jun 25, 2010
1 parent 05f9a41 commit 4705aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/parsing.py
Expand Up @@ -11,14 +11,14 @@
class Tokenize(TestCase):
def tokens(self):
text = Text('hello = world')
tokens = grammar.get_tokens(text).get_all()
tokens = grammar.get_tokens(text).tokens
self.assertEqual(len(tokens), 6)
self.assertEqual(tokens[2].charno, 7)
self.assertEqual(tokens[-2].value, 'world')

def token_lines(self):
text = Text('hello\nworld = 6')
tokens = grammar.get_tokens(text).get_all()
tokens = grammar.get_tokens(text).tokens
self.assertEqual(len(tokens), 8)
self.assertEqual(tokens[-2].lineno, 2)

Expand Down

0 comments on commit 4705aa1

Please sign in to comment.