From 31c8fb2818ce9de45c17b615254d9e1a87737c1d Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Fri, 17 Feb 2023 18:14:13 +0000 Subject: [PATCH] tests --- tests/test_spatial_map.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tests/test_spatial_map.py b/tests/test_spatial_map.py index 80a0eda1c..a8b0fb0d6 100644 --- a/tests/test_spatial_map.py +++ b/tests/test_spatial_map.py @@ -46,11 +46,19 @@ def test_get_values_in_region() -> None: [ (Region(10, 5, 5, 5), False, "foo"), (Region(5, 20, 5, 5), False, "bar"), + (Region(0, 0, 40, 1), True, "title"), ] ) - assert spatial_map.get_values_in_region(Region(0, 0, 10, 5)) == ["foo"] - assert spatial_map.get_values_in_region(Region(0, 1, 10, 5)) == ["foo"] - assert spatial_map.get_values_in_region(Region(0, 10, 10, 5)) == [] - assert spatial_map.get_values_in_region(Region(0, 20, 10, 5)) == ["bar"] - assert spatial_map.get_values_in_region(Region(5, 5, 50, 50)) == ["foo", "bar"] + assert spatial_map.get_values_in_region(Region(0, 0, 10, 5)) == [ + "title", + "foo", + ] + assert spatial_map.get_values_in_region(Region(0, 1, 10, 5)) == ["title", "foo"] + assert spatial_map.get_values_in_region(Region(0, 10, 10, 5)) == ["title"] + assert spatial_map.get_values_in_region(Region(0, 20, 10, 5)) == ["title", "bar"] + assert spatial_map.get_values_in_region(Region(5, 5, 50, 50)) == [ + "title", + "foo", + "bar", + ]