Skip to content

Commit 3f297db

Browse files
committed
Add Docstring to tests
Signed-off-by: Alexandre Ghelfi <alexandre.ghelfi@helsing.ai>
1 parent c9f80cc commit 3f297db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

warp/tests/test_struct.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ def kernel_struct_property(s: StructWithProperty, out: wp.array(dtype=float)):
911911

912912

913913
def test_struct_property(test, device):
914+
"""Tests that structs with properties (getters) are supported."""
914915
s = StructWithProperty()
915916
s.value = 42.0
916917

@@ -922,6 +923,7 @@ def test_struct_property(test, device):
922923

923924

924925
def test_struct_property_with_setter(test, device):
926+
"""Tests that structs with properties (setters) are not supported."""
925927
with test.assertRaisesRegex(TypeError, "Struct properties do not support setters"):
926928

927929
@wp.struct

0 commit comments

Comments
 (0)