test_serialize_logical_scalar Subroutine

public subroutine test_serialize_logical_scalar()

Arguments

None

Calls

proc~~test_serialize_logical_scalar~~CallsGraph proc~test_serialize_logical_scalar test_serialize_logical_scalar anyexceptions anyexceptions proc~test_serialize_logical_scalar->anyexceptions assertequal assertequal proc~test_serialize_logical_scalar->assertequal interface~deserialize_intrinsic deserialize_intrinsic proc~test_serialize_logical_scalar->interface~deserialize_intrinsic interface~serialize_intrinsic serialize_intrinsic proc~test_serialize_logical_scalar->interface~serialize_intrinsic

Source Code

   subroutine test_serialize_logical_scalar()

      call check(.true.); if (anyExceptions()) return
      call check(.false.); if (anyExceptions()) return

   contains

      subroutine check(expected)
         logical, intent(in) :: expected
         logical :: found

         call deserialize_intrinsic(serialize_intrinsic(expected),found)
         @assertEqual(expected, found)

      end subroutine check
      
   end subroutine test_serialize_logical_scalar