Skip to content

Commit d8dce86

Browse files
committed
add test for charmap_build
1 parent 3530708 commit d8dce86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_codecs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,9 @@ def test_escape_decode(self):
172172
check(br"[\x410]", "[A0]")
173173
check(br"\u20ac", "\u20ac")
174174
check(br"\U0001d120", "\U0001d120")
175+
176+
177+
def test_charmap_build():
178+
import codecs
179+
assert codecs.charmap_build(u'123456') == {49: 0, 50: 1, 51: 2,
180+
52: 3, 53: 4, 54: 5}

0 commit comments

Comments
 (0)