Coverage for bom.py: 71%

7 statements  

« prev     ^ index     » next       coverage.py v6.4a0, created at 2022-05-20 16:29 -0400

1# A Python source file in utf-8, with BOM. 

2math = "3×4 = 12, ÷2 = 6±0" 

3 

4import sys 

5 

6if sys.version_info >= (3, 0): 

7 assert len(math) == 18 

8 assert len(math.encode('utf-8')) == 21 

9else: 

10 assert len(math) == 21 

11 assert len(math.decode('utf-8')) == 18