Skip to content

Commit 1ff087d

Browse files
committed
fixed doc test errors: area_triangle_two_sides_included_angle
1 parent 0ab5f46 commit 1ff087d

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

maths/area.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -321,33 +321,24 @@ def area_triangle_two_sides_included_angle(
321321
322322
>>> round(area_triangle_two_sides_included_angle(10, 10, 30), 1)
323323
25.0
324-
325324
>>> round(area_triangle_two_sides_included_angle(10, 10, -30), 1)
326325
25.0
327-
328326
>>> round(area_triangle_two_sides_included_angle(10, 10, 330), 1)
329327
25.0
330-
331328
>>> round(area_triangle_two_sides_included_angle(10, 10, 180), 1)
332329
0.0
333-
334330
>>> round(area_triangle_two_sides_included_angle(10, 10, 0), 1)
335331
0.0
336-
337332
>>> round(area_triangle_two_sides_included_angle(0, 10, 120), 1)
338333
0.0
339-
340334
>>> area_triangle_two_sides_included_angle(1, -1, 1)
341335
Traceback (most recent call last):
342336
...
343-
ValueError: area_triangle_two_sides_included_angle() only accepts \
344-
non-negative lengths
345-
337+
ValueError: ...
346338
>>> area_triangle_two_sides_included_angle(-1, 1, 1)
347339
Traceback (most recent call last):
348340
...
349-
ValueError: area_triangle_two_sides_included_angle() only accepts \
350-
non-negative lengths
341+
ValueError: ...
351342
"""
352343
if side1 < 0 or side2 < 0:
353344
raise ValueError(

0 commit comments

Comments
 (0)