Example #1
0
 def test_savart_converter(self):
     inter = 4/3.
     inter_sav = log10(inter)*1000
     self.assertEqual(inter_sav, di.savart(inter))
Example #2
0
 def test_savart_converter(self):
     inter = 4 / 3.
     inter_sav = log10(inter) * 1000
     self.assertEqual(inter_sav, di.savart(inter))
Example #3
0
    def test_dias_following_unit(self):
	global unit
	di.set_unit("savart")
	self.assertEqual(di.dias(3/2.),di.savart(3/2.))
	di.set_unit("cent")
	self.assertEqual(di.dias(3/2.),di.cent(3/2.))
Example #4
0
 def test_dias_following_unit(self):
     global unit
     di.set_unit("savart")
     self.assertEqual(di.dias(3 / 2.), di.savart(3 / 2.))
     di.set_unit("cent")
     self.assertEqual(di.dias(3 / 2.), di.cent(3 / 2.))