Skip to content

Commit 7f02f4c

Browse files
authored
Update openlocationcode_test.py
1 parent 5f6c6ea commit 7f02f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/openlocationcode_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def setUp(self):
5050

5151
def test_full2short(self):
5252
for td in self.testdata:
53-
if td['testdata'] == 'B' or td['testdata'] == 'S':
53+
if td['testtype'] == 'B' or td['testtype'] == 'S':
5454
self.assertEqual(td['shortcode'], olc.shorten(td['fullcode'], td['lat'], td['lng']), td)
55-
if td['testdata'] == 'B' or td['testdata'] == 'R':
55+
if td['testtype'] == 'B' or td['testtype'] == 'R':
5656
self.assertEqual(td['fullcode'], olc.recoverNearest(td['shortcode'], td['lat'], td['lng']), td)
5757

5858

0 commit comments

Comments
 (0)