We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b66ce20 + 3fe1f0b commit 350492dCopy full SHA for 350492d
1 file changed
episodes/08-parametrization.Rmd
@@ -61,7 +61,7 @@ def test_calculate_area():
61
p12 = Point(2, 0)
62
p13 = Point(1, 1.7320)
63
t1 = Triangle(p11, p12, p13)
64
- assert t1.calculate_area() == 6
+ assert t1.calculate_area() == 1.7320
65
66
# Right-angled triangle
67
p21 = Point(0, 0)
@@ -100,7 +100,7 @@ import pytest
100
@pytest.mark.parametrize(
101
("p1x, p1y, p2x, p2y, p3x, p3y, expected"),
102
[
103
- pytest.param(0, 0, 2, 0, 1, 1.7320, 6, id="Equilateral triangle"),
+ pytest.param(0, 0, 2, 0, 1, 1.7320, 1.7320, id="Equilateral triangle"),
104
pytest.param(0, 0, 3, 0, 0, 4, 6, id="Right-angled triangle"),
105
pytest.param(0, 0, 4, 0, 2, 8, 16, id="Isosceles triangle"),
106
pytest.param(0, 0, 3, 0, 1, 4, 6, id="Scalene triangle"),
0 commit comments