58 CHARACTER(LEN=*) :: str
62 WRITE(*,
'(A,A)')
"# ",trim(str)
66 FUNCTION itoa(i)
RESULT(str)
70 CHARACTER(len=ceiling(log10(
REAL(i)+1))) :: str
73 CHARACTER(LEN=16) :: tmp
77 n = ceiling(log10(
REAL(i)+1))
83 FUNCTION rtoa(r)
RESULT(str)
87 CHARACTER(LEN=12) :: str
91 WRITE(str,
'(ES12.3)') r
99 CHARACTER(len=128),
OPTIONAL :: why
101 INTENT(IN) :: tests, why
107 WRITE(*,
'(A)')
"TAP version 13" 110 IF(
PRESENT(why))
THEN 111 WRITE(*,
'(A,A)')
"1..0 SKIP ", why
113 WRITE(*,
'(A)')
"1..0 SKIP" 117 WRITE(*,
'(A,A)')
"1..",
itoa(tests)
147 SUBROUTINE tap_check(file,line,test,name)
150 CHARACTER(LEN=*) :: file
153 CHARACTER(LEN=*) :: name
155 INTENT(IN) :: file, line, test, name
170 CHARACTER(LEN=*) :: file
173 CHARACTER(LEN=*) :: name
175 INTENT(IN) :: file, line, test, name
179 CALL tap_diag(
"Failed test '"//trim(name)//
"'")
188 CHARACTER(LEN=*) :: file
190 CHARACTER(LEN=*) :: op
193 CHARACTER(LEN=*) :: name
195 INTENT(IN) :: file, line, op, test, a, b, name
199 CALL tap_diag(
"Failed test '"//trim(name)//
"'")
209 CHARACTER(LEN=*) :: file
212 CHARACTER(LEN=*) :: name
216 INTENT(IN) :: file, line, a, b, eps, name
218 test = abs(a-b).LT.eps
221 CALL tap_diag(
"Failed test '"//trim(name)//
"'")
231 CHARACTER(LEN=*) :: file
234 CHARACTER(LEN=*) :: name
238 INTENT(IN) :: file, line, a, eps, name
243 CALL tap_diag(
"Failed test '"//trim(name)//
"'")
subroutine, public tap_done()
subroutine setprefix(val)
Set character preceding the info output.
integer, save current_test
subroutine tap_check(file, line, test, name)
subroutine, public tap_check_op_at_loc(file, line, op, test, a, b, name)
subroutine, public tap_check_small_at_loc(file, line, a, eps, name)
integer, parameter no_plan
integer, save failed_tests
subroutine, public tap_plan(tests, why)
subroutine, public tap_check_at_loc(file, line, test, name)
character(len=12) function rtoa(r)
integer, save expected_tests
integer, parameter skip_all
subroutine, public tap_check_close_at_loc(file, line, a, b, eps, name)