diff options
author | ptmcg <ptmcg@austin.rr.com> | 2021-10-26 18:56:58 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2021-10-26 18:56:58 -0500 |
commit | 4ab17bb55d1ba72adef66c01232711d421650767 (patch) | |
tree | 4a440c0e5f3b0906f33abde5191d48a04e3cd477 /examples | |
parent | 8b3d958cfec645255e24f2f0ab2d0361660b4947 (diff) | |
download | pyparsing-git-4ab17bb55d1ba72adef66c01232711d421650767.tar.gz |
Revert strict LineStart interpretation in 3.0.0 to 2.4.x behavior (Issue #317)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/test_bibparse.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/test_bibparse.py b/examples/test_bibparse.py index 9857ab4..b1a55c5 100644 --- a/examples/test_bibparse.py +++ b/examples/test_bibparse.py @@ -57,22 +57,22 @@ class TestBibparse(unittest.TestCase): self.assertEqual(obj.parseString("{}").asList(), []) self.assertEqual(obj.parseString('{a "string}')[0], 'a "string') self.assertEqual( - ["a ", ["nested"], "string"], + ["a ", ["nested"], " string"], obj.parseString("{a {nested} string}").asList(), ) self.assertEqual( - ["a ", ["double ", ["nested"]], "string"], + ["a ", ["double ", ["nested"]], " string"], obj.parseString("{a {double {nested}} string}").asList(), ) for obj in (bp.quoted_string, bp.string, bp.field_value): self.assertEqual([], obj.parseString('""').asList()) self.assertEqual("a string", obj.parseString('"a string"')[0]) self.assertEqual( - ["a ", ["nested"], "string"], + ["a ", ["nested"], " string"], obj.parseString('"a {nested} string"').asList(), ) self.assertEqual( - ["a ", ["double ", ["nested"]], "string"], + ["a ", ["double ", ["nested"]], " string"], obj.parseString('"a {double {nested}} string"').asList(), ) |