@@ -47,8 +47,8 @@ contains
47
47
48
48
!> Tests for deg2rad/rad2deg
49
49
#:for k1 in REAL_KINDS
50
- , new_unittest("deg2rad-${k1}$", test_deg2rad_${k1}$) &
51
- , new_unittest("rad2deg-${k1}$", test_rad2deg_${k1}$) &
50
+ , new_unittest("deg2rad-real- ${k1}$", test_deg2rad_${k1}$) &
51
+ , new_unittest("rad2deg-real- ${k1}$", test_rad2deg_${k1}$) &
52
52
#:endfor
53
53
54
54
!> Tests for `is_close` and `all_close`
@@ -312,15 +312,19 @@ contains
312
312
subroutine test_deg2rad_${k1}$(error)
313
313
type(error_type), allocatable, intent(out) :: error
314
314
real(${k1}$), parameter :: tol = sqrt(epsilon(1.0_${k1}$))
315
+
315
316
call check(error, PI_${k1}$, deg2rad(180.0_${k1}$), thr=tol)
316
317
if (allocated(error)) return
318
+
317
319
end subroutine test_deg2rad_${k1}$
318
320
319
321
subroutine test_rad2deg_${k1}$(error)
320
322
type(error_type), allocatable, intent(out) :: error
321
323
real(${k1}$), parameter :: tol = sqrt(epsilon(1.0_${k1}$))
322
- call check(error, 180.0_${k1}$, rad2deg(PI_${k1}$))
324
+
325
+ call check(error, 180.0_${k1}$, rad2deg(PI_${k1}$), thr=tol)
323
326
if (allocated(error)) return
327
+
324
328
end subroutine test_rad2deg_${k1}$
325
329
#:endfor
326
330
0 commit comments