blob: 098ad84fe5f5e4eb5973a5c72c1c4fd266f9a166 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
# A Python source file in utf-8, with BOM.
math = "3×4 = 12, ÷2 = 6±0"
import sys
if sys.version_info >= (3, 0):
assert len(math) == 18
assert len(math.encode('utf-8')) == 21
else:
assert len(math) == 21
assert len(math.decode('utf-8')) == 18
|