Skip to content

Commit 0d41ae8

Browse files
committed
[test_validation.py] Add Property with Dtype String for Property String Values Test
1 parent dde6730 commit 0d41ae8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_validation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ def test_prop_string_values(self):
161161
raise validation warning.
162162
"""
163163

164+
prop0 = odml.Property(name='words', dtype="string",
165+
values=['-13', '101', '-11', 'hello'])
166+
assert len(validate(prop0).errors) == 0
167+
164168
prop1 = odml.Property(name='members', dtype="string",
165169
values=['-13', '101', '-11', '0', '-8'])
166170
self.assertError(validate(prop1), 'Dtype of property "members" currently is "string",'

0 commit comments

Comments
 (0)