Read the state fields that join states with a hyphen
NPS writes MO-IL, ID-MT-WY and TN-NC, and the old split on commas and slashes dropped those places' states. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e59c152e7c
commit
c704139e5b
2 files changed
+14
-2
No files matched your search
@@ -149,6 +149,13 @@ class ProposalTest(unittest.TestCase):
|
||||
o = outline("park", "P9", "Edge Park", self.park.geometry, hint=["MT", "ID", "PR"])
|
||||
self.assertEqual(P.where_of(o), ["ID", "MT"])
|
||||
|
||||
def test_state_codes_reads_the_separators_the_sources_use(self):
|
||||
self.assertEqual(P.state_codes("ID-MT-WY"), ["ID", "MT", "WY"])
|
||||
self.assertEqual(P.state_codes("AR/OK"), ["AR", "OK"])
|
||||
self.assertEqual(P.state_codes("FL 6/"), ["FL"])
|
||||
self.assertEqual(P.state_codes("SAMOA"), [])
|
||||
self.assertEqual(P.state_codes(None), [])
|
||||
|
||||
def test_where_of_a_range_is_found_from_the_state_boxes(self):
|
||||
# wholly inside the Wyoming box, clear of every other state's box
|
||||
o = outline("range", "R5", "Wyoming Range", self.park.geometry)
|
||||
|
||||
Reference in new issue
Block a user