+ 1

I can’t start pytest (what’s wrong?)... if you need code “quadratic_equation_roots”, write me

from quadratic_equation_roots import find_roots def test_two_roots(): equation = '1x^2+2x-3=0' expected = (1.0, -3.0) actual = find_roots(equation) assert len(actual) == 2 assert sorted(expected) == sorted(actual)

4th May 2020, 3:40 PM
Syrex
Syrex - avatar
1 RĂ©ponse