Skip to content

Commit 3e02d1c

Browse files
committed
add tests for solved issue sagemath#15971
1 parent 52a81cb commit 3e02d1c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/sage/rings/fraction_field.py

+12
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@
5555
sage: F = FractionField(PolynomialRing(RationalField(),2,'x'))
5656
sage: F == loads(dumps(F))
5757
True
58+
59+
Test that :trac:`15971` is fixed::
60+
61+
sage: for B in [QQ['t'], QQ['s, t'], ZZ['t'], ZZ['s, t']]:
62+
....: F = B.fraction_field()
63+
....: R = F['x, y']
64+
....: x = R.gen(0)
65+
....: print(x / x)
66+
1
67+
1
68+
1
69+
1
5870
"""
5971
# ****************************************************************************
6072
#

0 commit comments

Comments
 (0)