Skip to content

Commit

Permalink
restore failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nvkelso committed Apr 25, 2016
1 parent 183516f commit 98cc13d
Showing 1 changed file with 27 additions and 31 deletions.
58 changes: 27 additions & 31 deletions test/399-add-island-labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@

# NODE archipelago labels (from place nodes)
# http://www.openstreetmap.org/node/3178316462
# assert_has_feature(
# 15, 10776, 14921, 'earth',
# { 'kind': 'archipelago', 'label_placement': 'yes', 'min_zoom': 15, 'name': 'Les Saintes' })
assert_has_feature(
15, 10776, 14921, 'earth',
{ 'kind': 'archipelago', 'label_placement': 'yes', 'min_zoom': 15, 'name': 'Les Saintes' })

# NODE archipelago labels (from place nodes)
# http://www.openstreetmap.org/node/358955020
# assert_has_feature(
# 15, 9367, 12534, 'earth',
# { 'kind': 'archipelago', 'label_placement': 'yes', 'min_zoom': 15, 'name': 'Three Sisters Islands' })
assert_has_feature(
15, 9367, 12534, 'earth',
{ 'kind': 'archipelago', 'label_placement': 'yes', 'min_zoom': 15, 'name': 'Three Sisters Islands' })

# LARGE archipelago labels (from place polygons)
# There aren't any today
Expand Down Expand Up @@ -68,34 +68,30 @@
# NODE island labels (from place nodes)
# http://www.openstreetmap.org/node/358761955
# Bird Island, north of SF
# assert_has_feature(
# 15, 5230, 12659, 'earth',
# { 'kind': 'island', 'label_placement': 'yes', 'name': 'Bird Island' })
assert_has_feature(
15, 5230, 12659, 'earth',
{ 'kind': 'island', 'label_placement': 'yes', 'name': 'Bird Island' })

# NODE island labels (from place nodes)
# http://www.openstreetmap.org/node/358768646
# Kent Island, north of SF
# assert_has_feature(
# 15, 5217, 12649, 'earth',
# { 'kind': 'island', 'label_placement': 'yes', 'name': 'Kent Island' })
assert_has_feature(
15, 5217, 12649, 'earth',
{ 'kind': 'island', 'label_placement': 'yes', 'name': 'Kent Island' })

# LARGE island labels (from place polygons)
# http://www.openstreetmap.org/relation/4227580
# Manitoulin Island, Canada
# We'd like to see this at zoom 7, but the join only includes OSM at 9+
# 9, 139, 182, 'earth',
# assert_has_feature(
# 7, 34, 45, 'earth',
# { 'kind': 'island', 'label_placement': 'yes', 'name': 'Manitoulin Island' })
assert_has_feature(
7, 34, 45, 'earth',
{ 'kind': 'island', 'label_placement': 'yes', 'name': 'Manitoulin Island' })

# LARGE island labels (from place polygons)
# http://www.openstreetmap.org/relation/5176042
# Trinidad, the island of the nation
# We'd like to see this at zoom 7, but the join only includes OSM at 9+
# 9, 168, 241, 'earth',
# assert_has_feature(
# 7, 42, 60, 'earth',
# { 'kind': 'island', 'label_placement': 'yes', 'name': 'Trinidad' })
assert_has_feature(
7, 42, 60, 'earth',
{ 'kind': 'island', 'label_placement': 'yes', 'name': 'Trinidad' })

# MEDIUM island labels (from place polygons)
# http://www.openstreetmap.org/way/124916662
Expand Down Expand Up @@ -159,9 +155,9 @@
# NODE islet labels (from place nodes)
# http://www.openstreetmap.org/node/358795646
# Pyramid Rock, SF
# assert_has_feature(
# 16, 10466, 25327, 'earth',
# { 'kind': 'islet', 'label_placement': 'yes', 'name': 'Pyramid Rock', 'min_zoom': 17 })
assert_has_feature(
16, 10466, 25327, 'earth',
{ 'kind': 'islet', 'label_placement': 'yes', 'name': 'Pyramid Rock', 'min_zoom': 17 })

# LARGE islet labels (from place polygons)
# http://www.openstreetmap.org/way/40500803
Expand All @@ -181,13 +177,13 @@
# SMALL islet labels (from place polygons)
# http://www.openstreetmap.org/way/306344403
# Sail Rock, near SF
# assert_has_feature(
# 16, 10467, 25395, 'earth',
# { 'kind': 'islet', 'label_placement': 'yes', 'name': 'Sail Rock', 'min_zoom': 17 })
assert_has_feature(
16, 10467, 25395, 'earth',
{ 'kind': 'islet', 'label_placement': 'yes', 'name': 'Sail Rock', 'min_zoom': 17 })

# SMALL islet labels (from place polygons)
# http://www.openstreetmap.org/way/32289183
# Little Mile Rock, SF
# assert_has_feature(
# 16, 10465, 25326, 'earth',
# { 'kind': 'islet', 'label_placement': 'yes', 'name': 'Little Mile Rock', 'min_zoom': 17 })
assert_has_feature(
16, 10465, 25326, 'earth',
{ 'kind': 'islet', 'label_placement': 'yes', 'name': 'Little Mile Rock', 'min_zoom': 17 })

0 comments on commit 98cc13d

Please sign in to comment.