Exemplo n.º 1
0
 def test_multiplicative_converter(self):
     c = ScaleConverter(20.0)
     self.assertTrue(c.is_multiplicative)
     self.assertFalse(c.is_logarithmic)
     self.assertEqual(c.from_reference(c.to_reference(100)), 100)
     self.assertEqual(c.to_reference(c.from_reference(100)), 100)
Exemplo n.º 2
0
 def test_multiplicative_converter(self):
     c = ScaleConverter(20.)
     self.assertEqual(c.from_reference(c.to_reference(100)), 100)
     self.assertEqual(c.to_reference(c.from_reference(100)), 100)
Exemplo n.º 3
0
 def test_multiplicative_converter(self):
     c = ScaleConverter(20.0)
     assert c.is_multiplicative
     assert not c.is_logarithmic
     assert c.from_reference(c.to_reference(100)) == 100
     assert c.to_reference(c.from_reference(100)) == 100
Exemplo n.º 4
0
 def test_multiplicative_converter(self):
     c = ScaleConverter(20.)
     self.assertEqual(c.from_reference(c.to_reference(100)), 100)
     self.assertEqual(c.to_reference(c.from_reference(100)), 100)