Debian Codegraph @

extra_tests/test_complexobject.py

raw symbols SCIP
1 import pytest
2
3 @pytest.mark.skipif("sys.maxunicode == 0xffff")
4 def test_constructor_unicode():
5 b1 = '\N{MATHEMATICAL BOLD DIGIT ONE}' # 𝟏
6 b2 = '\N{MATHEMATICAL BOLD DIGIT TWO}' # 𝟐
7 s = '{0}+{1}j'.format(b1, b2)
8 assert complex(s) == 1+2j
9 assert complex('\N{EM SPACE}(\N{EN SPACE}1+1j ) ') == 1+1j