File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def test_simple_attributes(self):
1414 p_name = "propertyName"
1515 p_origin = "from over there"
1616 p_unit = "pears"
17- p_uncertainty = "+- 12"
17+ p_uncertainty = "12"
1818 p_ref = "4 8 15 16 23"
1919 p_def = "an odml test property"
2020 p_dep = "yes"
@@ -40,8 +40,8 @@ def test_simple_attributes(self):
4040 self .assertEqual (prop .value_origin , "%s_edit" % p_origin )
4141 prop .unit = "%s_edit" % p_unit
4242 self .assertEqual (prop .unit , "%s_edit" % p_unit )
43- prop .uncertainty = "%s_edit" % p_uncertainty
44- self .assertEqual (prop .uncertainty , "%s_edit" % p_uncertainty )
43+ prop .uncertainty = 13
44+ self .assertEqual (prop .uncertainty , 13.0 )
4545 prop .reference = "%s_edit" % p_ref
4646 self .assertEqual (prop .reference , "%s_edit" % p_ref )
4747 prop .definition = "%s_edit" % p_def
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ def test_adding_other_entities_properties(self):
159159 p_unit = "u1"
160160 p_name = "p1"
161161 p_def = "p comment"
162- p_uncertainty = "un"
162+ p_uncertainty = 13.0
163163 p_dtype = "string"
164164 p_value_origin = "value"
165165 p_ref = "p_ref"
You can’t perform that action at this time.
0 commit comments