Skip to content

Commit 03c1693

Browse files
committed
enable testing for xdp
1 parent 5d380a0 commit 03c1693

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/string/test_string_to_number.fypp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ contains
2222
end subroutine collect_string_to_number
2323

2424
#:for k1, t1 in REAL_KINDS_TYPES
25-
#:if k1 != "xdp"
2625
subroutine test_to_${k1}$(error)
2726
type(error_type), allocatable, intent(out) :: error
2827
integer, parameter :: wp = ${k1}$
@@ -115,6 +114,8 @@ contains
115114
if(abs(rel_err) > 0.0_wp) then
116115
#:elif k1 == "dp"
117116
if(abs(rel_err) > epsilon(0.0_wp)) then
117+
#:elif k1 == "xdp"
118+
if(abs(rel_err) > 200*epsilon(0.0_wp)) then
118119
#:elif k1 == "qp"
119120
if(abs(rel_err) > 200*epsilon(0.0_wp)) then
120121
#:endif
@@ -126,8 +127,7 @@ contains
126127
end if
127128
end function
128129
end subroutine
129-
130-
#:endif
130+
131131
#:endfor
132132

133133
end module test_string_to_number

0 commit comments

Comments
 (0)