Beispiel #1
0
 def test_offset_converter(self):
     c = OffsetConverter(20.0, 2)
     self.assertFalse(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)
Beispiel #2
0
 def test_offset_converter(self):
     c = OffsetConverter(20., 2)
     self.assertEqual(c.from_reference(c.to_reference(100)), 100)
     self.assertEqual(c.to_reference(c.from_reference(100)), 100)
Beispiel #3
0
 def test_offset_converter(self):
     c = OffsetConverter(20.0, 2)
     assert not 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
Beispiel #4
0
 def test_offset_converter(self):
     c = OffsetConverter(20., 2)
     self.assertEqual(c.from_reference(c.to_reference(100)), 100)
     self.assertEqual(c.to_reference(c.from_reference(100)), 100)