Skip to content

Commit 84281da

Browse files
committed
Add a few more tests of CaseFoldSet
1 parent 02a3ca8 commit 84281da

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_data_structures.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,18 @@ def test_set_basic():
4040
d = CaseFoldSet()
4141
d.add('A')
4242
assert 'a' in d
43+
assert 'A' in d
4344

4445
d = CaseFoldSet(['A'])
4546
assert 'a' in d
47+
assert 'A' in d
48+
49+
d.add('b')
50+
d = CaseFoldSet(['a']) | CaseFoldSet(['B'])
51+
assert 'b' in d
52+
53+
d.add('É')
54+
assert 'é' in d
4655

4756

4857
def test_set_comparison():

0 commit comments

Comments
 (0)