@@ -9,52 +9,52 @@ module test_math
9
9
10
10
contains
11
11
12
- subroutine test_clip_int8 (x , xmin , xmax , compare )
13
- integer (int8), intent (in ) :: x, xmin, xmax, compare
12
+ subroutine test_clip_int8 (x , xmin , xmax , answer )
13
+ integer (int8), intent (in ) :: x, xmin, xmax, answer
14
14
15
- call check(clip(x, xmin, xmax) == compare )
15
+ call check(clip(x, xmin, xmax) == answer, ' test_clip_int8 failed. ' , warn = .true. )
16
16
17
17
end subroutine test_clip_int8
18
18
19
- subroutine test_clip_int16 (x , xmin , xmax , compare )
20
- integer (int16), intent (in ) :: x, xmin, xmax, compare
19
+ subroutine test_clip_int16 (x , xmin , xmax , answer )
20
+ integer (int16), intent (in ) :: x, xmin, xmax, answer
21
21
22
- call check(clip(x, xmin, xmax) == compare )
22
+ call check(clip(x, xmin, xmax) == answer, ' test_clip_int16 failed. ' , warn = .true. )
23
23
24
24
end subroutine test_clip_int16
25
25
26
- subroutine test_clip_int32 (x , xmin , xmax , compare )
27
- integer (int32), intent (in ) :: x, xmin, xmax, compare
26
+ subroutine test_clip_int32 (x , xmin , xmax , answer )
27
+ integer (int32), intent (in ) :: x, xmin, xmax, answer
28
28
29
- call check(clip(x, xmin, xmax) == compare )
29
+ call check(clip(x, xmin, xmax) == answer, ' test_clip_int32 failed. ' , warn = .true. )
30
30
31
31
end subroutine test_clip_int32
32
32
33
- subroutine test_clip_int64 (x , xmin , xmax , compare )
34
- integer (int64), intent (in ) :: x, xmin, xmax, compare
33
+ subroutine test_clip_int64 (x , xmin , xmax , answer )
34
+ integer (int64), intent (in ) :: x, xmin, xmax, answer
35
35
36
- call check(clip(x, xmin, xmax) == compare )
36
+ call check(clip(x, xmin, xmax) == answer, ' test_clip_int64 failed. ' , warn = .true. )
37
37
38
38
end subroutine test_clip_int64
39
39
40
- subroutine test_clip_sp (x , xmin , xmax , compare )
41
- real (sp), intent (in ) :: x, xmin, xmax, compare
40
+ subroutine test_clip_sp (x , xmin , xmax , answer )
41
+ real (sp), intent (in ) :: x, xmin, xmax, answer
42
42
43
- call check(clip(x, xmin, xmax) == compare )
43
+ call check(clip(x, xmin, xmax) == answer, ' test_clip_sp failed. ' , warn = .true. )
44
44
45
45
end subroutine test_clip_sp
46
46
47
- subroutine test_clip_dp (x , xmin , xmax , compare )
48
- real (dp), intent (in ) :: x, xmin, xmax, compare
47
+ subroutine test_clip_dp (x , xmin , xmax , answer )
48
+ real (dp), intent (in ) :: x, xmin, xmax, answer
49
49
50
- call check(clip(x, xmin, xmax) == compare )
50
+ call check(clip(x, xmin, xmax) == answer, ' test_clip_dp failed. ' , warn = .true. )
51
51
52
52
end subroutine test_clip_dp
53
53
54
- subroutine test_clip_qp (x , xmin , xmax , compare )
55
- real (qp), intent (in ) :: x, xmin, xmax, compare
54
+ subroutine test_clip_qp (x , xmin , xmax , answer )
55
+ real (qp), intent (in ) :: x, xmin, xmax, answer
56
56
57
- call check(clip(x, xmin, xmax) == compare )
57
+ call check(clip(x, xmin, xmax) == answer, ' test_clip_qp failed. ' , warn = .true. )
58
58
59
59
end subroutine test_clip_qp
60
60
0 commit comments