mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
22 lines
424 B
Python
22 lines
424 B
Python
|
|
# Test the unicode support! 👋
|
|
|
|
|
|
áš´=2
|
|
|
|
assert áš´*8 == 16
|
|
|
|
ᚴ="👋"
|
|
|
|
c = áš´*3
|
|
|
|
assert c == '👋👋👋'
|
|
|
|
import unicodedata
|
|
assert unicodedata.category('a') == 'Ll'
|
|
assert unicodedata.category('A') == 'Lu'
|
|
assert unicodedata.name('a') == 'LATIN SMALL LETTER A'
|
|
assert unicodedata.lookup('LATIN SMALL LETTER A') == 'a'
|
|
assert unicodedata.bidirectional('a') == 'L'
|
|
assert unicodedata.normalize('NFC', 'bla') == 'bla'
|