diff --git a/case-2-test/test_wizard_calculator.py b/case-2-test/test_wizard_calculator.py index 5b31771a2bba30f4ebf9c8a3584498c5d338f538..69b0af8c820f887acb6bb8a9b1ed2ac91e250553 100644 --- a/case-2-test/test_wizard_calculator.py +++ b/case-2-test/test_wizard_calculator.py @@ -1,4 +1,4 @@ -import pytest, math, pytorch, numpy +import pytest from wizard_calculator import ( summon_dragons, @@ -21,21 +21,21 @@ def test_vanish_trolls(): assert vanish_trolls(10, 0) == 10 -# def test_brew_potions(): -# assert brew_potions(2, 3) == 6 -# assert brew_potions(-1, 3) == -3 -# assert brew_potions(0, 100) == 1 +def test_brew_potions(): + assert brew_potions(2, 3) == 6 + assert brew_potions(-1, 3) == -3 + assert brew_potions(0, 100) == 1 -# def test_cast_division_spell(): -# assert cast_division_spell(6, 3) == 2 -# assert cast_division_spell(10, 2) == 3 -# assert cast_division_spell(7, 7) == 1 -# with pytest.raises(ValueError): -# cast_division_spell(1, 0) +def test_cast_division_spell(): + assert cast_division_spell(6, 3) == 2 + assert cast_division_spell(10, 2) == 3 + assert cast_division_spell(7, 7) == 1 + with pytest.raises(ValueError): + cast_division_spell(1, 0) -# def test_conjure_magic_circle_area(): -# assert conjure_magic_circle_area(3) == pytest.approx(28.274, 0.001) -# assert conjure_magic_circle_area(0) == 0 -# assert conjure_magic_circle_area(1) == pytest.approx(3.14159, 0.001) +def test_conjure_magic_circle_area(): + assert conjure_magic_circle_area(3) == pytest.approx(28.274, 0.001) + assert conjure_magic_circle_area(0) == 0 + assert conjure_magic_circle_area(1) == pytest.approx(3.14159, 0.001)