We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab8146 commit 3680fa2Copy full SHA for 3680fa2
1 file changed
python/tests/match_object_test.py
@@ -205,6 +205,7 @@ def test_get_value_string():
205
c = StringDictionaryCompiler({"memory_limit_mb": "10"})
206
c.add("abc", "aaaaa")
207
c.add("abd", "bbbbb")
208
+ c.add("", "{}")
209
with tmp_dictionary(c, "match_object_string.kv") as d:
210
m = d["abc"]
211
assert m.value == "aaaaa"
@@ -221,6 +222,10 @@ def test_get_value_string():
221
222
)
223
== "bbbbb"
224
225
+ m = d["abd"]
226
+ # gh#333: keyvi < 0.6.4 returned a dictionary instead of a string
227
+ assert m.value == "{}"
228
+ assert isinstance(m.value, str)
229
230
231
def test_matched_string():
0 commit comments