Skip to content

Commit 86a1ef2

Browse files
committed
Add numerator/denominator tests to snippets
1 parent 73e418c commit 86a1ef2

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
@@ -52,6 +52,11 @@
5252
# real/imag attributes
5353
assert (1).real == 1
5454
assert (1).imag == 0
55+
# numerator/denominator attributes
56+
assert (1).numerator == 1
57+
assert (1).denominator == 1
58+
assert (10).numerator == 10
59+
assert (1).denominator == 1
5560

5661
assert_raises(OverflowError, lambda: 1 << 10 ** 100000)
5762

0 commit comments

Comments
 (0)