Skip to content

Commit 94a555a

Browse files
committed
Organized the unit test list into a fypp loop as well.
1 parent 3fd0def commit 94a555a

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

test/linalg/test_linalg.fypp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#:include "common.fypp"
2+
#:set RCI_KINDS_TYPES = REAL_KINDS_TYPES + CMPLX_KINDS_TYPES + INT_KINDS_TYPES
23

34
module test_linalg
45
use testdrive, only : new_unittest, unittest_type, error_type, check, skip_test
@@ -48,16 +49,9 @@ contains
4849
new_unittest("trace_int16", test_trace_int16), &
4950
new_unittest("trace_int32", test_trace_int32), &
5051
new_unittest("trace_int64", test_trace_int64), &
51-
new_unittest("kronecker_product_rsp", test_kronecker_product_rsp), &
52-
new_unittest("kronecker_product_rdp", test_kronecker_product_rdp), &
53-
new_unittest("kronecker_product_rqp", test_kronecker_product_rqp), &
54-
new_unittest("kronecker_product_csp", test_kronecker_product_csp), &
55-
new_unittest("kronecker_product_cdp", test_kronecker_product_cdp), &
56-
new_unittest("kronecker_product_cqp", test_kronecker_product_cqp), &
57-
new_unittest("kronecker_product_int8", test_kronecker_product_iint8), &
58-
new_unittest("kronecker_product_int16", test_kronecker_product_iint16), &
59-
new_unittest("kronecker_product_int32", test_kronecker_product_iint32), &
60-
new_unittest("kronecker_product_int64", test_kronecker_product_iint64), &
52+
#:for k1, t1 in RCI_KINDS_TYPES
53+
new_unittest("kronecker_product_${t1[0]}$${k1}$", test_kronecker_product_${t1[0]}$${k1}$), &
54+
#:endfor
6155
new_unittest("outer_product_rsp", test_outer_product_rsp), &
6256
new_unittest("outer_product_rdp", test_outer_product_rdp), &
6357
new_unittest("outer_product_rqp", test_outer_product_rqp), &
@@ -564,7 +558,7 @@ contains
564558
end subroutine test_trace_int64
565559

566560

567-
#:set RCI_KINDS_TYPES = REAL_KINDS_TYPES + CMPLX_KINDS_TYPES + INT_KINDS_TYPES
561+
568562
#:for k1, t1 in RCI_KINDS_TYPES
569563
subroutine test_kronecker_product_${t1[0]}$${k1}$(error)
570564
!> Error handling

0 commit comments

Comments
 (0)