Skip to content

Commit d962767

Browse files
author
Release Manager
committed
gh-35220: add tests for solved issue about fraction fields ### ๐Ÿ“š Description Add a simple test for #15971. Closes #15971. ### ๐Ÿ“ Checklist - [x] I have made sure that the title is self-explanatory and the description concisely explains the PR. - [x] I have linked an issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation accordingly. URL: #35220 Reported by: Vincent Delecroix Reviewer(s): Frรฉdรฉric Chapoton
2 parents f7e36b4 + 3e02d1c commit d962767

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

โ€Žsrc/sage/rings/fraction_field.pyโ€Ž

Lines changed: 12 additions & 0 deletions
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)