コード例 #1
0
	def test_resistance_e_squared_over_p(self):
		e = 4
		p = 2
		correct_result = 8
		assert(ohm.calc_resistance(e=e, p=p) == correct_result)
コード例 #2
0
	def test_resistance_p_over_i_squared(self):
		p = 32
		i = 4
		correct_result = 2
		assert(ohm.calc_resistance(p=p, i=i) == correct_result)
コード例 #3
0
	def test_resistance_e_over_i(self):
		e = 50
		i = 25
		correct_result = 2
		assert(ohm.calc_resistance(e=e, i=i) == correct_result)