C Library Functions  - unit_test_good (3)

NAME

unit_test_good(3f) - [M_verify] call command "goodbad NAME good" (LICENSE:PD)

CONTENTS

Synopsis
Description
Examples
Author
License

SYNOPSIS

subroutine unit_test_good(name,opts,msg)

    character(len=*),intent(in)          :: name
    character(len=*),intent(in),optional :: opts
    character(len=*),intent(in),optional :: msg

DESCRIPTION

A shortcut for

      call unit_test(name,.true.)
      call unit_test_done(name,opts,msg)

EXAMPLES

Sample program:

    program demo_unit_test_good
    use M_verify, only: unit_test_start, unit_test_done
    use M_verify, only: unit_test
    use M_verify, only: unit_test_good, unit_test_bad

implicit none integer :: x x=10 call unit_test_start(’myroutine’)

call unit_test(’myroutine’, x > 3 ,’test if big enough’) call unit_test(’myroutine’, x < 100 ,’test if small enough’)

call unit_test_good(’myroutine’,msg=’checks on "myroutine" ’)

end program demo_unit_test_good

AUTHOR

John S. Urban

LICENSE

Public Domain


Nemo Release 3.1 unit_test_good (3) June 29, 2025
Generated by manServer 1.08 from fa19e706-97e2-45e9-b606-9475da6f452c using man macros.