Line data Source code
1 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3 : !!!! !!!!
4 : !!!! ParaMonte: Parallel Monte Carlo and Machine Learning Library. !!!!
5 : !!!! !!!!
6 : !!!! Copyright (C) 2012-present, The Computational Data Science Lab !!!!
7 : !!!! !!!!
8 : !!!! This file is part of the ParaMonte library. !!!!
9 : !!!! !!!!
10 : !!!! LICENSE !!!!
11 : !!!! !!!!
12 : !!!! https://github.com/cdslaborg/paramonte/blob/main/LICENSE.md !!!!
13 : !!!! !!!!
14 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
15 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16 :
17 : !> \brief
18 : !> This module contains tests of the module [pm_complexCompareAny](@ref pm_complexCompareAny).
19 : !>
20 : !> \fintest
21 : !>
22 : !> \author
23 : !> \AmirShahmoradi, September 1, 2017, 12:00 AM, Institute for Computational Engineering and Sciences (ICES), The University of Texas at Austin
24 :
25 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26 :
27 : module test_pm_complexCompareAny
28 :
29 : use pm_complexCompareAny
30 : use pm_err, only: err_type
31 : use pm_test, only: test_type, LK
32 : implicit none
33 :
34 : private
35 : public :: setTest
36 : type(test_type) :: test
37 :
38 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39 :
40 : interface
41 : #if CK5_ENABLED
42 : module function test_isanyless_CK5_1() result(assertion); logical(LK) :: assertion; end function
43 : module function test_isanyleq_CK5_1() result(assertion); logical(LK) :: assertion; end function
44 : module function test_isanyneq_CK5_1() result(assertion); logical(LK) :: assertion; end function
45 : module function test_isanyeq_CK5_1() result(assertion); logical(LK) :: assertion; end function
46 : module function test_isanymeq_CK5_1() result(assertion); logical(LK) :: assertion; end function
47 : module function test_isanymore_CK5_1() result(assertion); logical(LK) :: assertion; end function
48 : #endif
49 : #if CK4_ENABLED
50 : module function test_isanyless_CK4_1() result(assertion); logical(LK) :: assertion; end function
51 : module function test_isanyleq_CK4_1() result(assertion); logical(LK) :: assertion; end function
52 : module function test_isanyneq_CK4_1() result(assertion); logical(LK) :: assertion; end function
53 : module function test_isanyeq_CK4_1() result(assertion); logical(LK) :: assertion; end function
54 : module function test_isanymeq_CK4_1() result(assertion); logical(LK) :: assertion; end function
55 : module function test_isanymore_CK4_1() result(assertion); logical(LK) :: assertion; end function
56 : #endif
57 : #if CK3_ENABLED
58 : module function test_isanyless_CK3_1() result(assertion); logical(LK) :: assertion; end function
59 : module function test_isanyleq_CK3_1() result(assertion); logical(LK) :: assertion; end function
60 : module function test_isanyneq_CK3_1() result(assertion); logical(LK) :: assertion; end function
61 : module function test_isanyeq_CK3_1() result(assertion); logical(LK) :: assertion; end function
62 : module function test_isanymeq_CK3_1() result(assertion); logical(LK) :: assertion; end function
63 : module function test_isanymore_CK3_1() result(assertion); logical(LK) :: assertion; end function
64 : #endif
65 : #if CK2_ENABLED
66 : module function test_isanyless_CK2_1() result(assertion); logical(LK) :: assertion; end function
67 : module function test_isanyleq_CK2_1() result(assertion); logical(LK) :: assertion; end function
68 : module function test_isanyneq_CK2_1() result(assertion); logical(LK) :: assertion; end function
69 : module function test_isanyeq_CK2_1() result(assertion); logical(LK) :: assertion; end function
70 : module function test_isanymeq_CK2_1() result(assertion); logical(LK) :: assertion; end function
71 : module function test_isanymore_CK2_1() result(assertion); logical(LK) :: assertion; end function
72 : #endif
73 : #if CK1_ENABLED
74 : module function test_isanyless_CK1_1() result(assertion); logical(LK) :: assertion; end function
75 : module function test_isanyleq_CK1_1() result(assertion); logical(LK) :: assertion; end function
76 : module function test_isanyneq_CK1_1() result(assertion); logical(LK) :: assertion; end function
77 : module function test_isanyeq_CK1_1() result(assertion); logical(LK) :: assertion; end function
78 : module function test_isanymeq_CK1_1() result(assertion); logical(LK) :: assertion; end function
79 : module function test_isanymore_CK1_1() result(assertion); logical(LK) :: assertion; end function
80 : #endif
81 : end interface
82 :
83 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
84 :
85 : contains
86 :
87 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
88 :
89 1 : subroutine setTest()
90 :
91 : implicit none
92 1 : test = test_type(MODULE_NAME)
93 :
94 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95 :
96 : #if CK5_ENABLED
97 : call test%run(test_isanyless_CK5_1, SK_"test_isanyless_CK5_1")
98 : call test%run(test_isanyleq_CK5_1, SK_"test_isanyleq_CK5_1")
99 : call test%run(test_isanyneq_CK5_1, SK_"test_isanyneq_CK5_1")
100 : call test%run(test_isanyeq_CK5_1, SK_"test_isanyeq_CK5_1")
101 : call test%run(test_isanymeq_CK5_1, SK_"test_isanymeq_CK5_1")
102 : call test%run(test_isanymore_CK5_1, SK_"test_isanymore_CK5_1")
103 : #endif
104 : #if CK4_ENABLED
105 1 : call test%run(test_isanyless_CK4_1, SK_"test_isanyless_CK4_1")
106 1 : call test%run(test_isanyleq_CK4_1, SK_"test_isanyleq_CK4_1")
107 1 : call test%run(test_isanyneq_CK4_1, SK_"test_isanyneq_CK4_1")
108 1 : call test%run(test_isanyeq_CK4_1, SK_"test_isanyeq_CK4_1")
109 1 : call test%run(test_isanymeq_CK4_1, SK_"test_isanymeq_CK4_1")
110 1 : call test%run(test_isanymore_CK4_1, SK_"test_isanymore_CK4_1")
111 : #endif
112 : #if CK3_ENABLED
113 1 : call test%run(test_isanyless_CK3_1, SK_"test_isanyless_CK3_1")
114 1 : call test%run(test_isanyleq_CK3_1, SK_"test_isanyleq_CK3_1")
115 1 : call test%run(test_isanyneq_CK3_1, SK_"test_isanyneq_CK3_1")
116 1 : call test%run(test_isanyeq_CK3_1, SK_"test_isanyeq_CK3_1")
117 1 : call test%run(test_isanymeq_CK3_1, SK_"test_isanymeq_CK3_1")
118 1 : call test%run(test_isanymore_CK3_1, SK_"test_isanymore_CK3_1")
119 : #endif
120 : #if CK2_ENABLED
121 1 : call test%run(test_isanyless_CK2_1, SK_"test_isanyless_CK2_1")
122 1 : call test%run(test_isanyleq_CK2_1, SK_"test_isanyleq_CK2_1")
123 1 : call test%run(test_isanyneq_CK2_1, SK_"test_isanyneq_CK2_1")
124 1 : call test%run(test_isanyeq_CK2_1, SK_"test_isanyeq_CK2_1")
125 1 : call test%run(test_isanymeq_CK2_1, SK_"test_isanymeq_CK2_1")
126 1 : call test%run(test_isanymore_CK2_1, SK_"test_isanymore_CK2_1")
127 : #endif
128 : #if CK1_ENABLED
129 1 : call test%run(test_isanyless_CK1_1, SK_"test_isanyless_CK1_1")
130 1 : call test%run(test_isanyleq_CK1_1, SK_"test_isanyleq_CK1_1")
131 1 : call test%run(test_isanyneq_CK1_1, SK_"test_isanyneq_CK1_1")
132 1 : call test%run(test_isanyeq_CK1_1, SK_"test_isanyeq_CK1_1")
133 1 : call test%run(test_isanymeq_CK1_1, SK_"test_isanymeq_CK1_1")
134 1 : call test%run(test_isanymore_CK1_1, SK_"test_isanymore_CK1_1")
135 : #endif
136 :
137 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
138 :
139 1 : call test%summarize()
140 :
141 1 : end subroutine setTest
142 :
143 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
144 :
145 : end module test_pm_complexCompareAny ! LCOV_EXCL_LINE
|