1
1
module test_string_to_number
2
- use iso_fortran_env , only: sp= >real32 , dp= >real64 , qp= >real128
2
+ use stdlib_kinds , only: sp, dp, qp
3
3
use stdlib_str2num
4
4
use testdrive, only : new_unittest, unittest_type, error_type, check
5
5
implicit none
@@ -14,6 +14,9 @@ subroutine collect_string_to_number(testsuite)
14
14
testsuite = [ &
15
15
new_unittest("to_float", test_to_float), &
16
16
new_unittest("to_double", test_to_double) &
17
+ #:if WITH_QP
18
+ , new_unittest("to_quadruple", test_to_quadruple) &
19
+ #:endif
17
20
]
18
21
end subroutine collect_string_to_number
19
22
@@ -215,6 +218,7 @@ logical function ucheck(s)
215
218
end function
216
219
end subroutine
217
220
221
+ #:if WITH_QP
218
222
subroutine test_to_quadruple(error)
219
223
use stdlib_str2num
220
224
type(error_type), allocatable, intent(out) :: error
@@ -313,6 +317,7 @@ logical function ucheck(s)
313
317
end if
314
318
end function
315
319
end subroutine
320
+ #:endif
316
321
317
322
end module test_string_to_number
318
323
@@ -340,4 +345,4 @@ program tester
340
345
write(error_unit, '(i0, 1x, a)') stat, "test(s) failed!"
341
346
error stop
342
347
end if
343
- end program
348
+ end program
0 commit comments