Skip to content

Changed dict key-matching regex to capture any valid dict key #920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Oct 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added test case for string dict key being typed inside []
  • Loading branch information
arian-deimling committed Oct 1, 2021
commit 01ed93bb8b38f4e8702bd09d4c251d5e5fe1ec5c
1 change: 1 addition & 0 deletions bpython/test/test_line_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def test_simple(self):
self.assertAccess("object.dict[<-1000>|")
self.assertAccess("object.dict[<-0.23948>|")
self.assertAccess("object.dict[<'\U0001ffff>|")
self.assertAccess(r"object.dict[<'a\'\\\"\n\\'>|]")
self.assertAccess(r"object.dict[<'a\'\\\"\n\\|[[]'>")
self.assertAccess("object.dict[<\"a]bc[|]\">]")
self.assertAccess("object.dict[<'abcd[]>|")
Expand Down