Skip to content

Commit 8eeae4d

Browse files
committed
Basic module-level doc for test_special_cases.py
1 parent 0acee7c commit 8eeae4d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

array_api_tests/test_special_cases.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
"""
2+
Tests for special cases.
3+
4+
The test cases for special casing are built on runtime via the parametrized
5+
test_unary and test_binary functions. Most of this file consists of utility
6+
classes and functions, all bought together to create the test cases (pytest
7+
params), to finally be run through the general test logic of either test_unary
8+
or test_binary.
9+
10+
TODO: test integer arrays for relevant special cases
11+
"""
112
# We use __future__ for forward reference type hints - this will work for even py3.8.0
213
# See https://stackoverflow.com/a/33533514/5193926
314
from __future__ import annotations
@@ -32,13 +43,6 @@
3243

3344
pytestmark = pytest.mark.ci
3445

35-
# The special case test casess are built on runtime via the parametrized
36-
# test_unary and test_binary functions. Most of this file consists of utility
37-
# classes and functions, all bought together to create the test cases (pytest
38-
# params), to finally be run through the general test logic of either test_unary
39-
# or test_binary.
40-
41-
4246
UnaryCheck = Callable[[float], bool]
4347
BinaryCheck = Callable[[float, float], bool]
4448

0 commit comments

Comments
 (0)