Skip to content

Commit b9a87fc

Browse files
committed
[tests] Update uncertainty tests
1 parent 8082a0c commit b9a87fc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/test_property.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

test/test_rdf_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)