Skip to content

Commit 1916c00

Browse files
committed
palermo precisely
1 parent 679f0a6 commit 1916c00

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/redis/commands_on_geo_test.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,20 @@ def coordinates_catania
6767
end
6868
end
6969

70+
def coordinates_palermo
71+
if version >= "8.0"
72+
["13.36138933897018433", "38.11555639549629859"]
73+
else
74+
["13.361389338970184", "38.1155563954963"]
75+
end
76+
end
77+
7078
def test_geopos
7179
location = r.geopos("Sicily", "Catania")
7280
assert_equal [coordinates_catania], location
7381

7482
locations = r.geopos("Sicily", ["Palermo", "Catania"])
75-
assert_equal [["13.36138933897018433", "38.11555639549629859"], coordinates_catania], locations
83+
assert_equal [coordinates_palermo, coordinates_catania], locations
7684
end
7785

7886
def test_geopos_nonexistant_location

0 commit comments

Comments
 (0)