Exemplo n.º 1
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.))
Exemplo n.º 2
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.))
Exemplo n.º 3
0
    def test_cent_converter(self):
	inter = 4/3.
	inter_cent = log2(inter)*1200
	self.assertEqual(inter_cent, di.cent(inter))
Exemplo n.º 4
0
 def test_cent_converter(self):
     inter = 4 / 3.
     inter_cent = log2(inter) * 1200
     self.assertEqual(inter_cent, di.cent(inter))