Skip to content

Commit 20c3200

Browse files
committed
Minor changes to some lists in the tests
1 parent dddc326 commit 20c3200

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

maths/polynomials/legendre.py

+4-11
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,14 @@ def test_legendre_1():
3535

3636
def test_legendre_2():
3737
"""Test the 2nd Legendre polynomial."""
38-
assert legendre(2) == [
39-
-0.5,
40-
0.0,
41-
1.5,
42-
], "The 2nd Legendre polynomial should be [-0.5, 0.0, 1.5]"
38+
assert legendre(2) == [-0.5, 0.0, 1.5]
39+
"The 2nd Legendre polynomial should be [-0.5, 0.0, 1.5]"
4340

4441

4542
def test_legendre_3():
4643
"""Test the 3rd Legendre polynomial."""
47-
assert legendre(3) == [
48-
0.0,
49-
-1.5,
50-
0.0,
51-
2.5,
52-
], "The 3rd Legendre polynomial should be [0.0, -1.5, 0.0, 2.5]"
44+
assert legendre(3) == [0.0, -1.5, 0.0, 2.5]
45+
"The 3rd Legendre polynomial should be [0.0, -1.5, 0.0, 2.5]"
5346

5447

5548
def test_legendre_4():

0 commit comments

Comments
 (0)