mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
check for non-existant rules
This commit is contained in:
@@ -317,6 +317,13 @@ def test_spacing_add():
|
||||
Spacing(1, 2, 3, 4) + "foo"
|
||||
|
||||
|
||||
def test_spacing_sub():
|
||||
assert Spacing(1, 2, 3, 4) - Spacing(5, 6, 7, 8) == Spacing(-4, -4, -4, -4)
|
||||
|
||||
with pytest.raises(TypeError):
|
||||
Spacing(1, 2, 3, 4) - "foo"
|
||||
|
||||
|
||||
def test_split():
|
||||
assert Region(10, 5, 22, 15).split(10, 5) == (
|
||||
Region(10, 5, 10, 5),
|
||||
|
||||
Reference in New Issue
Block a user