54 #include "dllexport.h" 88 INTEGER(INTG),
INTENT(IN) :: EXPECTED_VALUE
89 INTEGER(INTG),
INTENT(IN) :: ACTUAL_VALUE
90 INTEGER(INTG),
INTENT(OUT) :: ERR
94 enters(
"TEST_FRAMEWORK_ASSERT_EQUALS_INTG",err,error,*999)
96 IF(expected_value/=actual_value)
THEN 97 CALL flagerror(
"Not equal",err,error,*999)
100 exits(
"TEST_FRAMEWORK_ASSERT_EQUALS_INTG")
102 999 errorsexits(
"TEST_FRAMEWORK_ASSERT_EQUALS_INTG",err,error)
114 REAL(DP),
INTENT(IN) :: EXPECTED_VALUE
115 REAL(DP),
INTENT(IN) :: ACTUAL_VALUE
116 INTEGER(INTG),
INTENT(OUT) :: ERR
120 enters(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP1",err,error,*999)
124 exits(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP1")
126 999 errorsexits(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP1",err,error)
139 REAL(DP),
INTENT(IN) :: EXPECTED_VALUE
140 REAL(DP),
INTENT(IN) :: ACTUAL_VALUE
141 REAL(DP),
INTENT(IN) :: TOLERANCE
142 INTEGER(INTG),
INTENT(OUT) :: ERR
146 enters(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP2",err,error,*999)
148 IF(abs(expected_value-actual_value)>tolerance)
THEN 149 CALL flagerror(
"Not Equal",err,error,*999)
152 exits(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP2")
154 999 errorsexits(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP1",err,error)
166 REAL(DP),
INTENT(IN) :: EXPECTED_VALUE(:)
167 REAL(DP),
INTENT(IN) :: ACTUAL_VALUE(:)
168 INTEGER(INTG),
INTENT(OUT) :: ERR
173 enters(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP",err,error,*999)
175 IF(
SIZE(expected_value)==
SIZE(actual_value))
THEN 176 DO i=1,
SIZE(expected_value)
180 CALL flagerror(
"Not Equal",err,error,*999)
183 exits(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP")
185 999 errorsexits(
"TEST_FRAMEWORK_ASSERT_EQUALS_DP",err,error)
198 REAL(DP),
INTENT(IN) :: X_VALUES(:)
199 REAL(DP),
INTENT(IN) :: Y_VALUES(:)
200 REAL(DP),
INTENT(OUT) :: GRADIENT_VALUE
204 INTEGER(INTG) :: i, interval_size
206 enters(
"TEST_FRAMEWORK_GRADIENT_VALUE_GET",err,error,*999)
208 IF(
SIZE(x_values)==
SIZE(y_values))
THEN 209 gradient_value=0.0_dp
210 interval_size=
SIZE(x_values)-1
211 DO i=1,
SIZE(x_values)
213 gradient_value=gradient_value+(y_values(i)-y_values(i-1))/(x_values(i)-x_values(i-1))/interval_size
217 CALL flagerror(
'Size of x and Size of y do not match',err,error,*999)
220 exits(
"TEST_FRAMEWORK_GRADIENT_VALUE_GET")
222 999 errorsexits(
"TEST_FRAMEWORK_GRADIENT_VALUE_GET",err,error)
subroutine test_framework_assert_equals_dp1(EXPECTED_VALUE, ACTUAL_VALUE, ERR)
Check if the actual real(DP) value is as expected.
This module contains all string manipulation and transformation routines.
This module provides an iso_varying_string module, conformant to the API specified in ISO/IEC 1539-2:...
This module contains all program wide constants.
subroutine, public test_framework_gradient_value_get(X_VALUES, Y_VALUES, GRADIENT_VALUE)
Get the gradient value of two array.
subroutine test_framework_assert_equals_dp(EXPECTED_VALUE, ACTUAL_VALUE, ERR)
Check if the actual real(DP) values is as expected.
This module contains all routines dealing with (non-distributed) matrix and vectors types...
This module handles test framework routines.
subroutine test_framework_assert_equals_intg(EXPECTED_VALUE, ACTUAL_VALUE, ERR)
Check if the actual integer value is as expected.
subroutine test_framework_assert_equals_dp2(EXPECTED_VALUE, ACTUAL_VALUE, TOLERANCE, ERR)
Check if the actual real(DP) value is as expected.
real(dp), parameter zero_tolerance
This module contains all kind definitions.