Skip to content

Commit 852dd10

Browse files
committed
Added tests to imag/real attributes.
1 parent 0c1057f commit 852dd10

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/snippets/ints.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
assert (2).__truediv__(1) == 2.0
3333
assert (2).__rtruediv__(1) == 0.5
3434

35+
# real/imag attributes
36+
assert (1).real == 1
37+
assert (1).imag == 0
38+
39+
3540
assert (1).__eq__(1.0) == NotImplemented
3641
assert (1).__ne__(1.0) == NotImplemented
3742
assert (1).__gt__(1.0) == NotImplemented

0 commit comments

Comments
 (0)