Skip to content
Snippets Groups Projects
Commit 5d2ba754 authored by Cedric Verstege's avatar Cedric Verstege
Browse files

:black_cat:

parent 97696980
Branches
No related tags found
No related merge requests found
Pipeline #4415 failed
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment