GRASP rci-qed
Data Types | Modules | Functions/Subroutines
testing.f90 File Reference

Data Types

interface  grasptest_testing::test_isequal
 

Modules

module  grasptest_testing
 Various handy routines useful for writing unit tests.
 

Functions/Subroutines

real(real64) function grasptest_testing::reldiff (a, b)
 Calculate the relative difference of a and b. More...
 
logical function grasptest_testing::within_tolerance (a, b, relative_tolerance)
 Checks if the difference of a and b are within the tolerance relative to \(\max(|a|,|b|)\). More...
 
subroutine grasptest_testing::test_isequal_real64 (test_passed, which, a, b, relative_tolerance)
 Tests if two floating point values are the same withing the specified relative tolerance. More...
 
subroutine grasptest_testing::test_isequal_logical (test_passed, which, a, b)
 Tests if two logical values are equal. More...
 
subroutine grasptest_testing::test_isequal_integer (test_passed, which, a, b)
 Tests if two integer values are equal. More...
 
subroutine grasptest_testing::test_isequal_atol (test_passed, which, a, b, absolute_tolerance)
 Tests if two floating point values are the same withing the specified absolute tolerance. More...