Skip to content

Commit a4ac79c

Browse files
committed
add spacing between tests
1 parent 78e3ef1 commit a4ac79c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/sage/rings/function_field/drinfeld_modules/drinfeld_module.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,21 +984,29 @@ def basic_j_invariant_parameters(self, coeff_indices=None, nonzero=False):
984984
...
985985
TypeError: coefficients indices must be integers
986986
987+
::
988+
987989
sage: phi.basic_j_invariant_parameters([1, 10])
988990
Traceback (most recent call last):
989991
...
990992
ValueError: indices must be > 0 and < 3
991993
994+
::
995+
992996
sage: phi.basic_j_invariant_parameters([1, 1])
993997
Traceback (most recent call last):
994998
...
995999
ValueError: indices must be distinct and sorted
9961000
1001+
::
1002+
9971003
sage: phi.basic_j_invariant_parameters([2, 1])
9981004
Traceback (most recent call last):
9991005
...
10001006
ValueError: indices must be distinct and sorted
10011007
1008+
::
1009+
10021010
sage: phi.basic_j_invariant_parameters('x')
10031011
Traceback (most recent call last):
10041012
...
@@ -1441,51 +1449,71 @@ def j_invariant(self, parameter=None, check=True):
14411449
...
14421450
TypeError: parameter must not be None if the rank is greater than 2
14431451
1452+
::
1453+
14441454
sage: phi.j_invariant(-1)
14451455
Traceback (most recent call last):
14461456
...
14471457
ValueError: integer parameter must be >= 1 and < the rank (=4)
14481458
1459+
::
1460+
14491461
sage: phi.j_invariant('x')
14501462
Traceback (most recent call last):
14511463
...
14521464
TypeError: parameter must be a tuple or a list of length 2 or an integer
14531465
1466+
::
1467+
14541468
sage: phi.j_invariant((1, 2, 3))
14551469
Traceback (most recent call last):
14561470
...
14571471
ValueError: list or tuple parameter must be of length 2
14581472
1473+
::
1474+
14591475
sage: phi.j_invariant(('x', (1, 2, 3)))
14601476
Traceback (most recent call last):
14611477
...
14621478
TypeError: list or tuple parameter must contain tuples or lists
14631479
1480+
::
1481+
14641482
sage: phi.j_invariant(((1, 2), 'x'))
14651483
Traceback (most recent call last):
14661484
...
14671485
TypeError: list or tuple parameter must contain tuples or lists
14681486
1487+
::
1488+
14691489
sage: phi.j_invariant(((1, 2, 3, 4, 5), (2, 1)))
14701490
Traceback (most recent call last):
14711491
...
14721492
ValueError: components of tuple or list parameter have incorrect length
14731493
1494+
::
1495+
14741496
sage: phi.j_invariant(((1, 'x'), (2, 3, 8)))
14751497
Traceback (most recent call last):
14761498
...
14771499
TypeError: components of tuple or list parameter must contain only integers
14781500
1501+
::
1502+
14791503
sage: phi.j_invariant(((1, 2), (2, 3, 'x')))
14801504
Traceback (most recent call last):
14811505
...
14821506
TypeError: components of tuple or list parameter must contain only integers
14831507
1508+
::
1509+
14841510
sage: phi.j_invariant(((1, 2), (4, 3, 7)))
14851511
Traceback (most recent call last):
14861512
...
14871513
ValueError: parameter does not satisfy the weight-0 condition
14881514
1515+
::
1516+
14891517
sage: phi.j_invariant(((1, 2), (4, 3, 7)), check=False)
14901518
1/T^13
14911519
"""

0 commit comments

Comments
 (0)