diff options
author | ptmcg <ptmcg@austin.rr.com> | 2021-09-25 12:04:15 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2021-09-25 12:04:15 -0500 |
commit | 16b73169f660d7ad98f2ecef3808b5c1aa711693 (patch) | |
tree | 7ec25a4981de9f104e0fbfb0ee16e2972e2b170c /tests | |
parent | 49add35c746ae91c662f68ca58b11f814a45ac8f (diff) | |
download | pyparsing-git-16b73169f660d7ad98f2ecef3808b5c1aa711693.tar.gz |
Blacken and update version time
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_unit.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/test_unit.py b/tests/test_unit.py index baca550..5253dbf 100644 --- a/tests/test_unit.py +++ b/tests/test_unit.py @@ -2557,10 +2557,14 @@ class Test02_WithoutPackrat(ppt.TestParseResultsAsserts, TestCase): test_string = "abd def ghi jkl" parser = alpwd * 2 + numwd * 0 + alpwd * 2 - self.assertParseAndCheckList(parser, test_string, expected_list=test_string.split()) + self.assertParseAndCheckList( + parser, test_string, expected_list=test_string.split() + ) parser = alpwd * 2 + numwd * (0, 0) + alpwd * 2 - self.assertParseAndCheckList(parser, test_string, expected_list=test_string.split()) + self.assertParseAndCheckList( + parser, test_string, expected_list=test_string.split() + ) def testParserElementMulOperatorWithOtherTypes(self): """test the overridden "*" operator with other data types""" @@ -6854,7 +6858,9 @@ class Test02_WithoutPackrat(ppt.TestParseResultsAsserts, TestCase): """, ] integer = ppc.integer - group = pp.Group(pp.Char(pp.alphas) + pp.Group(pp.IndentedBlock(integer, recursive=False))) + group = pp.Group( + pp.Char(pp.alphas) + pp.Group(pp.IndentedBlock(integer, recursive=False)) + ) for data in datas: print() @@ -6862,8 +6868,10 @@ class Test02_WithoutPackrat(ppt.TestParseResultsAsserts, TestCase): print(group[...].parse_string(data).as_list()) self.assertParseAndCheckList( - group[...] + integer.suppress(), data, [["A", [100]], ["B", [200]]], - verbose=False + group[...] + integer.suppress(), + data, + [["A", [100]], ["B", [200]]], + verbose=False, ) def testIndentedBlockClassWithRecursion(self): |