test_serialize_int64_scalar Subroutine

public subroutine test_serialize_int64_scalar()

Arguments

None

Calls

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

Source Code

   subroutine test_serialize_int64_scalar()
      integer(kind=INT64) :: i,j,L
      L = 10
      i = L**15; j = i+1
      call check(i); if (anyExceptions()) return
      call check(j); if (anyExceptions()) return

   contains

      subroutine check(expected)
         integer(kind=INT64), intent(in) :: expected
         integer(kind=INT64) :: found

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

      end subroutine check
      
   end subroutine test_serialize_int64_scalar