We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48c1ef6 commit a118e5dCopy full SHA for a118e5d
1 file changed
test/testsuite/TestSuite.jl
@@ -8,4 +8,18 @@ Suite of tests that may be used for all packages inheriting from MatrixAlgebraKi
8
"""
9
module TestSuite
10
11
+const tests = Dict()
12
+
13
+macro testsuite(name, ex)
14
+ safe_name = lowercase(replace(replace(name, " " => "_"), "/" => "_"))
15
+ fn = Symbol("test_", safe_name)
16
+ return quote
17
+ $(esc(fn))(AT; eltypes = supported_eltypes(AT, $(esc(fn)))) = $(esc(ex))(AT, eltypes)
18
+ @assert !haskey(tests, $name) "testsuite already exists"
19
+ tests[$name] = $fn
20
+ end
21
+end
22
23
24
25
end
0 commit comments