示例#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)
示例#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)
示例#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
示例#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)