| Index: third_party/closure_linter/closure_linter/tokenutil_test.py
|
| diff --git a/third_party/closure_linter/closure_linter/tokenutil_test.py b/third_party/closure_linter/closure_linter/tokenutil_test.py
|
| index d5af9fac4a1e51e0a1eb93e92eae4275658b444e..c7d3854776bd483cfa0bb0622afcdde249370da0 100644
|
| --- a/third_party/closure_linter/closure_linter/tokenutil_test.py
|
| +++ b/third_party/closure_linter/closure_linter/tokenutil_test.py
|
| @@ -99,9 +99,13 @@ start1. // comment
|
| tokenutil.GetPreviousCodeToken(_GetTokenStartingWith('start1')))
|
|
|
| self.assertEquals(
|
| - 'start1.',
|
| + '.',
|
| tokenutil.GetPreviousCodeToken(_GetTokenStartingWith('end1')).string)
|
|
|
| + self.assertEquals(
|
| + 'start1',
|
| + tokenutil.GetPreviousCodeToken(_GetTokenStartingWith('.')).string)
|
| +
|
| def testGetNextCodeToken(self):
|
|
|
| tokens = testutil.TokenizeSource("""
|
| @@ -116,10 +120,14 @@ start1. // comment
|
| return t
|
|
|
| self.assertEquals(
|
| - 'end1',
|
| + '.',
|
| tokenutil.GetNextCodeToken(_GetTokenStartingWith('start1')).string)
|
|
|
| self.assertEquals(
|
| + 'end1',
|
| + tokenutil.GetNextCodeToken(_GetTokenStartingWith('.')).string)
|
| +
|
| + self.assertEquals(
|
| None,
|
| tokenutil.GetNextCodeToken(_GetTokenStartingWith('end1')))
|
|
|
|
|