Skip to content

Commit 9e7a64d

Browse files
committed
two more tests
1 parent a7459c4 commit 9e7a64d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/tests.f90

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ subroutine fptest6()
258258

259259
implicit none
260260

261-
integer, parameter :: nfunc = 12
261+
integer, parameter :: nfunc = 14
262262
character (len=*), dimension(nfunc), parameter :: func = [ '-1.0*x ', &
263263
'-sqrt(x) ', &
264264
'a*COS(b*x)+5 ', &
@@ -270,7 +270,9 @@ subroutine fptest6()
270270
'tan(x) ', &
271271
'asin(y) ', &
272272
'acos(y) ', &
273-
'atan(y) ' ]
273+
'atan(y) ', &
274+
'-x**2 ', &
275+
'-x^2 ' ]
274276
integer, parameter :: nvar = 4
275277
character (len=*), dimension(nvar), parameter :: var = [ 'x', &
276278
'a', &
@@ -314,6 +316,8 @@ subroutine fptest6()
314316
call compare(func(10), asin(y), res(10))
315317
call compare(func(11), acos(y), res(11))
316318
call compare(func(12), atan(y), res(12))
319+
call compare(func(13), -x**2, res(13))
320+
call compare(func(13), -x**2, res(14))
317321
end if
318322

319323
end subroutine fptest6

0 commit comments

Comments
 (0)