Test endsWith to verify operation
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
subroutine testEndsWith
!! Test endsWith to verify operation
logical,dimension(4)::results
results(1) = endsWith('thisFunction','Function')
results(2) = .not.endsWith('thisFunction','Subroutine')
results(3) = .not.endsWith('','this')
results(4) = endsWith('thisFunction','')
if( .not.all(results) ) error stop "Failed endsWith check"
end subroutine testEndsWith