Exemplo n.º 1
0
	def test_current_p_over_e(self):
		p = 20
		e = 10
		correct_result = 2
		assert(ohm.calc_current(p=p, e=e) == correct_result)
Exemplo n.º 2
0
	def test_current_sqrt_p_over_r(self):
		p = 64
		r = 4
		correct_result = 4
		assert(ohm.calc_current(p=p, r=r) == correct_result)
Exemplo n.º 3
0
	def test_current_e_over_r(self):
		e = 16
		r = 2
		correct_result = 8
		assert(ohm.calc_current(e=e, r=r) == correct_result)