Skip to content

Commit 32be859

Browse files
author
Larry Huang
committed
add testcase for testing fixing slash-squal
1 parent 1ea5e83 commit 32be859

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_fix_classic_division.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@
44

55

66
CLASSIC_DIVISION = ("""\
7+
a /= 3
78
1 / 2
89
""",
910
"""\
1011
from __future__ import division
12+
a //= 3
1113
1 // 2
1214
""")
1315

1416
NEW_DIVISION = ("""\
1517
from __future__ import division
1618
1 / 2
19+
a /= 3
1720
""",
1821
"""\
1922
from __future__ import division
2023
1 / 2
24+
a /= 3
2125
""")
2226

2327

0 commit comments

Comments
 (0)