Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:32:31

0001 from __future__ import absolute_import
0002 import unittest
0003 import math
0004 from .value import Value 
0005 
0006 class ValueTestCase(unittest.TestCase):
0007 
0008     def test(self):
0009         val1 = Value(1.,0.02)
0010         val2 = Value(2.,0.02)
0011         val3 = val1 / val2
0012         # should test the value and the error after each operation.
0013         # I'll write the tests when I have some time 
0014 
0015     def test_equal(self):
0016         val1 = Value(1.,0.02)
0017         val2 = Value(1.,0.02)
0018         self.assertEqual(val1, val2)
0019 
0020 if __name__ == '__main__':
0021     unittest.main()