assertions_implementation Submodule


Uses

  • module~~assertions_implementation~~UsesGraph module~assertions_implementation assertions_implementation module~assertions_interface assertions_interface module~assertions_implementation->module~assertions_interface

Contents


Module Procedures

module procedure assert impure elemental module subroutine assert(assertion, description, diagnostic_data, success)

Arguments

Type IntentOptional AttributesName
logical, intent(in) :: assertion

Most assertions will be expressions, e.g., call assert( i>0, "positive i")

character(len=*), intent(in) :: description

Brief statement of what is being asserted

class(*), intent(in), optional :: diagnostic_data

Optional assertion result

logical, intent(out), optional :: success

Optional assertion result