Skip to content

Commit 0211c19

Browse files
adding tests for larger values to intdawg and intcompletiondawg; replacing dev data for those
1 parent 8e7390a commit 0211c19

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
0 Bytes
Binary file not shown.

dev_data/small/int_dawg.dawg

0 Bytes
Binary file not shown.

tests/test_dawg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_prefixes(self):
9191

9292

9393
class TestIntDAWG(object):
94-
payload = {'foo': 1, 'bar': 5, 'foobar': 3}
94+
payload = {'foo': 1, 'bar': 5, 'foobar': 30}
9595

9696
def dawg(self):
9797
return dawg_python.IntDAWG().load(data_path('small', 'int_dawg.dawg'))
@@ -135,7 +135,9 @@ def test_completion_items(self):
135135
def test_completion_edges(self):
136136
assert self.dawg().edges('ba') == [('bar', 5)]
137137
assert self.dawg().edges('foob') == [('fooba', False)]
138+
assert self.dawg().edges('fooba') == [('foobar', 30)]
138139

139140
def test_completion_iteredges(self):
140141
assert list(self.dawg().iteredges('ba')) == [('bar', 5)]
141142
assert list(self.dawg().iteredges('foob')) == [('fooba', False)]
143+
assert list(self.dawg().iteredges('fooba')) == [('foobar', 30)]

0 commit comments

Comments
 (0)