@@ -9,13 +9,11 @@ module prif_co_sum_test_m
99 ,operator (.approximates.) &
1010 ,operator (.equalsExpected.) &
1111 ,operator (.within.) &
12+ ,usher &
1213 ,test_description_t &
1314 ,test_diagnosis_t &
1415 ,test_result_t &
1516 ,test_t
16- #if ! HAVE_PROCEDURE_ACTUAL_FOR_POINTER_DUMMY
17- use julienne_m, only : diagnosis_function_i
18- #endif
1917
2018 implicit none
2119 private
@@ -34,56 +32,23 @@ pure function subject() result(test_subject)
3432 test_subject = " The prif_co_sum subroutine"
3533 end function
3634
37- #if HAVE_PROCEDURE_ACTUAL_FOR_POINTER_DUMMY
38-
3935 function results () result(test_results)
4036 type (test_result_t), allocatable :: test_results(:)
4137 type (prif_co_sum_test_t) prif_co_sum_test
4238
4339 test_results = prif_co_sum_test% run([ &
44- test_description_t(" computing the element-wise sum of a 1D default integer array" , check_default_integer) &
45- ,test_description_t(" computing the element-wise sum of a 1D 8-bit integer(c_int8_t) array" , check_8_bit_integer) &
46- ,test_description_t(" computing the element-wise sum of a 1D 16-bit integer(c_int16_t) array" , check_16_bit_integer) &
47- ,test_description_t(" computing the element-wise sum of integer(c_int32_t) scalars" , check_32_bit_integer) &
48- ,test_description_t(" computing the element-wise sum of a 1D 64-bit integer(c_int64_t) array" , check_64_bit_integer) &
49- ,test_description_t(" computing the element-wise sum of a 2D 32-bit real(c_float) array" , check_32_bit_real) &
50- ,test_description_t(" computing the element-wise sum of a 1D 64-bit real(c_double) array" , check_64_bit_real) &
51- ,test_description_t(" computing the element-wise sum of a 2D complex(c_float) array" , check_32_bit_complex) &
52- ,test_description_t(" computing the element-wise sum of a 1D complex(c_double) array" , check_64_bit_complex) &
40+ test_description_t(" computing the element-wise sum of a 1D default integer array" , usher( check_default_integer) ) &
41+ ,test_description_t(" computing the element-wise sum of a 1D 8-bit integer(c_int8_t) array" , usher( check_8_bit_integer) ) &
42+ ,test_description_t(" computing the element-wise sum of a 1D 16-bit integer(c_int16_t) array" , usher( check_16_bit_integer) ) &
43+ ,test_description_t(" computing the element-wise sum of integer(c_int32_t) scalars" , usher( check_32_bit_integer) ) &
44+ ,test_description_t(" computing the element-wise sum of a 1D 64-bit integer(c_int64_t) array" , usher( check_64_bit_integer) ) &
45+ ,test_description_t(" computing the element-wise sum of a 2D 32-bit real(c_float) array" , usher( check_32_bit_real) ) &
46+ ,test_description_t(" computing the element-wise sum of a 1D 64-bit real(c_double) array" , usher( check_64_bit_real) ) &
47+ ,test_description_t(" computing the element-wise sum of a 2D complex(c_float) array" , usher( check_32_bit_complex) ) &
48+ ,test_description_t(" computing the element-wise sum of a 1D complex(c_double) array" , usher( check_64_bit_complex) ) &
5349 ])
5450 end function
5551
56- #else
57-
58- function results () result(test_results)
59- type (test_result_t), allocatable :: test_results(:)
60- type (prif_co_sum_test_t) prif_co_sum_test
61- procedure (diagnosis_function_i), pointer :: &
62- check_default_integer_ptr = > check_default_integer &
63- ,check_8_bit_integer_ptr = > check_8_bit_integer &
64- ,check_16_bit_integer_ptr = > check_16_bit_integer &
65- ,check_32_bit_integer_ptr = > check_32_bit_integer &
66- ,check_64_bit_integer_ptr = > check_64_bit_integer &
67- ,check_32_bit_real_ptr = > check_32_bit_real &
68- ,check_64_bit_real_ptr = > check_64_bit_real &
69- ,check_32_bit_complex_ptr = > check_32_bit_complex &
70- ,check_64_bit_complex_ptr = > check_64_bit_complex
71-
72- test_results = prif_co_sum_test% run([ &
73- test_description_t(" computing the element-wise sum of a 1D default integer array" , check_default_integer_ptr) &
74- ,test_description_t(" computing the element-wise sum of a 1D 8-bit integer(c_int8_t) array" , check_8_bit_integer_ptr) &
75- ,test_description_t(" computing the element-wise sum of a 1D 16-bit integer(c_int16_t) array" , check_16_bit_integer_ptr) &
76- ,test_description_t(" computing the element-wise sum of integer(c_int32_t) scalars" , check_32_bit_integer_ptr) &
77- ,test_description_t(" computing the element-wise sum of a 1D 64-bit integer(c_int64_t) array" , check_64_bit_integer_ptr) &
78- ,test_description_t(" computing the element-wise sum of a 2D 32-bit real(c_float) array" , check_32_bit_real_ptr) &
79- ,test_description_t(" computing the element-wise sum of a 1D 64-bit real(c_double) array" , check_64_bit_real_ptr) &
80- ,test_description_t(" computing the element-wise sum of a 2D complex(c_float) array" , check_32_bit_complex_ptr) &
81- ,test_description_t(" computing the element-wise sum of a 1D complex(c_double) array" , check_64_bit_complex_ptr) &
82- ])
83- end function
84-
85- #endif
86-
8752 function check_default_integer () result(test_diagnosis)
8853 type (test_diagnosis_t) test_diagnosis
8954
0 commit comments