Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_truncate_lng_under():
assert mercantile.truncate_lnglat(-181, 0) == (-180, 0)
def test_truncate_lng_over():
assert mercantile.truncate_lnglat(181, 0) == (180, 0)
def test_truncate_lat_under():
assert mercantile.truncate_lnglat(0, -91) == (0, -90)
def test_truncate_lat_over():
assert mercantile.truncate_lnglat(0, 91) == (0, 90)