We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b9911 commit b3b6dadCopy full SHA for b3b6dad
ruby/test/plus_codes_test.rb
@@ -47,10 +47,15 @@ def test_shorten
47
lat = cols[1].to_f
48
lng = cols[2].to_f
49
short_code = cols[3]
50
- short = @olc.shorten(code, lat, lng)
51
- assert_equal(short_code, short)
52
- expanded = @olc.recover_nearest(short, lat, lng)
53
- assert_equal(code, expanded)
+ test_type = cols[4]
+ if test_type == 'B' || test_type == 'S'
+ short = @olc.shorten(code, lat, lng)
+ assert_equal(short_code, short)
54
+ end
55
+ if test_type == 'B' || test_type == 'R'
56
+ expanded = @olc.recover_nearest(short_code, lat, lng)
57
+ assert_equal(code, expanded)
58
59
end
60
@olc.shorten('9C3W9QCJ+2VX', 60.3701125, 10.202665625)
61
0 commit comments