OpenCMISS-Iron Internal API Documentation
test_framework_routines Module Reference

This module handles test framework routines. More...

Data Types

interface  test_framework_assert_equals
 

Functions/Subroutines

subroutine test_framework_assert_equals_intg (EXPECTED_VALUE, ACTUAL_VALUE, ERR)
 Check if the actual integer value is as expected. More...
 
subroutine test_framework_assert_equals_dp1 (EXPECTED_VALUE, ACTUAL_VALUE, ERR)
 Check if the actual real(DP) value is as expected. More...
 
subroutine test_framework_assert_equals_dp2 (EXPECTED_VALUE, ACTUAL_VALUE, TOLERANCE, ERR)
 Check if the actual real(DP) value is as expected. More...
 
subroutine test_framework_assert_equals_dp (EXPECTED_VALUE, ACTUAL_VALUE, ERR)
 Check if the actual real(DP) values is as expected. More...
 
subroutine, public test_framework_gradient_value_get (X_VALUES, Y_VALUES, GRADIENT_VALUE)
 Get the gradient value of two array. More...
 

Detailed Description

This module handles test framework routines.

Function/Subroutine Documentation

subroutine test_framework_routines::test_framework_assert_equals_dp ( real(dp), dimension(:), intent(in)  EXPECTED_VALUE,
real(dp), dimension(:), intent(in)  ACTUAL_VALUE,
integer(intg), intent(out)  ERR 
)
private

Check if the actual real(DP) values is as expected.

Parameters
[in]expected_valueexpected value
[in]actual_valueactual value
[out]errThe error code

Definition at line 164 of file test_framework_routines.f90.

subroutine test_framework_routines::test_framework_assert_equals_dp1 ( real(dp), intent(in)  EXPECTED_VALUE,
real(dp), intent(in)  ACTUAL_VALUE,
integer(intg), intent(out)  ERR 
)
private

Check if the actual real(DP) value is as expected.

Parameters
[in]expected_valueexpected value
[in]actual_valueactual value
[out]errThe error code

Definition at line 112 of file test_framework_routines.f90.

References test_framework_assert_equals_dp2(), and constants::zero_tolerance.

subroutine test_framework_routines::test_framework_assert_equals_dp2 ( real(dp), intent(in)  EXPECTED_VALUE,
real(dp), intent(in)  ACTUAL_VALUE,
real(dp), intent(in)  TOLERANCE,
integer(intg), intent(out)  ERR 
)
private

Check if the actual real(DP) value is as expected.

Parameters
[in]expected_valueexpected value
[in]actual_valueactual value
[out]errThe error code

Definition at line 136 of file test_framework_routines.f90.

Referenced by test_framework_assert_equals_dp1().

subroutine test_framework_routines::test_framework_assert_equals_intg ( integer(intg), intent(in)  EXPECTED_VALUE,
integer(intg), intent(in)  ACTUAL_VALUE,
integer(intg), intent(out)  ERR 
)
private

Check if the actual integer value is as expected.

Parameters
[in]expected_valueexpected value
[in]actual_valueactual value
[out]errThe error code

Definition at line 85 of file test_framework_routines.f90.

subroutine, public test_framework_routines::test_framework_gradient_value_get ( real(dp), dimension(:), intent(in)  X_VALUES,
real(dp), dimension(:), intent(in)  Y_VALUES,
real(dp), intent(out)  GRADIENT_VALUE 
)

Get the gradient value of two array.

Parameters
[in]x_valuesexpected value
[in]y_valuesactual value
[out]gradient_valueerror message

Definition at line 195 of file test_framework_routines.f90.