We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
area_heron_triangle
1 parent 40586f4 commit 1ba04f5Copy full SHA for 1ba04f5
test/math.jl
@@ -59,6 +59,9 @@ using TheAlgorithms.Math
59
@test_throws DomainError area_heron_triangle(-1, -2, 1)
60
@test_throws DomainError area_heron_triangle(1, -2, 1)
61
@test_throws DomainError area_heron_triangle(-1, 2, 1)
62
+ @test_throws DomainError area_heron_triangle(1, 1, 3)
63
+ @test_throws DomainError area_heron_triangle(1, 3, 1)
64
+ @test_throws DomainError area_heron_triangle(3, 1, 1)
65
66
@test area_parallelogram(10, 20) == 200
67
@test_throws DomainError area_parallelogram(-1, -2)
0 commit comments