Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
PhysicsTools
HeppyCore
python
statistics
value_test.py
Go to the documentation of this file.
1
from
__future__
import
absolute_import
2
import
unittest
3
import
math
4
from
.value
import
Value
5
6
class
ValueTestCase
(unittest.TestCase):
7
8
def
test
(self):
9
val1 =
Value
(1.,0.02)
10
val2 =
Value
(2.,0.02)
11
val3 = val1 / val2
12
# should test the value and the error after each operation.
13
# I'll write the tests when I have some time
14
15
def
test_equal
(self):
16
val1 =
Value
(1.,0.02)
17
val2 =
Value
(1.,0.02)
18
self.assertEqual(val1, val2)
19
20
if
__name__ ==
'__main__'
:
21
unittest.main()
value_test.ValueTestCase
Definition:
value_test.py:6
value_test.ValueTestCase.test_equal
def test_equal
Definition:
value_test.py:15
reco::JetExtendedAssociation::Value
reco::JetExtendedAssociation::JetExtendedData Value
Definition:
JetExtendedAssociation.h:27
value_test.ValueTestCase.test
def test
Definition:
value_test.py:8
Generated for CMSSW Reference Manual by
1.8.5