mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fast path for scrolling
This commit is contained in:
8
tests/test_spatial_map.py
Normal file
8
tests/test_spatial_map.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from textual._spatial_map import SpatialMap
|
||||
from textual.geometry import Region
|
||||
|
||||
|
||||
def test_region_to_grid():
|
||||
spatial_map = SpatialMap()
|
||||
|
||||
assert list(spatial_map._region_to_grid(Region(0, 0, 10, 10))) == [(0, 0)]
|
||||
Reference in New Issue
Block a user