Skip to content

Commit 1c0debe

Browse files
Fix doctest whitespace
1 parent 8d7d6f1 commit 1c0debe

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

maths/trapezoidal_rule.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ def make_points(a, b, h):
4242
:param h: The step size
4343
:yield: The next x-value in the range (a, b)
4444
45-
>>> list(make_points(0, 1, 0.1))
46-
[0.1, 0.2, 0.30000000000000004, \
47-
0.4, 0.5, 0.6, 0.7, \
48-
0.7999999999999999, \
49-
0.8999999999999999]
45+
>>> list(make_points(0, 1, 0.1)) # doctest: +NORMALIZE_WHITESPACE
46+
[0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999]
5047
>>> list(make_points(0, 10, 2.5))
5148
[2.5, 5.0, 7.5]
5249
>>> list(make_points(0, 10, 2))

0 commit comments

Comments
 (0)