![]() |
|
|||
File indexing completed on 2024-11-25 02:29:50
0001 import unittest 0002 import math 0003 from .value import Value 0004 0005 class ValueTestCase(unittest.TestCase): 0006 0007 def test(self): 0008 val1 = Value(1.,0.02) 0009 val2 = Value(2.,0.02) 0010 val3 = val1 / val2 0011 # should test the value and the error after each operation. 0012 # I'll write the tests when I have some time 0013 0014 def test_equal(self): 0015 val1 = Value(1.,0.02) 0016 val2 = Value(1.,0.02) 0017 self.assertEqual(val1, val2) 0018 0019 if __name__ == '__main__': 0020 unittest.main()
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |