test_construct_unit Subroutine

public subroutine test_construct_unit()

Arguments

None

Calls

proc~~test_construct_unit~~CallsGraph proc~test_construct_unit test_construct_unit assertequal assertequal proc~test_construct_unit->assertequal assertfalse assertfalse proc~test_construct_unit->assertfalse finalize_udunits_system finalize_udunits_system proc~test_construct_unit->finalize_udunits_system initialize_udunits_system initialize_udunits_system proc~test_construct_unit->initialize_udunits_system none~is_free CptrWrapper%is_free proc~test_construct_unit->none~is_free

Source Code

   subroutine test_construct_unit()
      type(UDUnit) :: unit1
      integer(ut_status) :: status
         
      call initialize_udunits_system(rc=status)
      @assertEqual(UT_SUCCESS, status, 'Failed to initialize')
      unit1 = UDUnit(KM)
      @assertFalse(unit1%is_free(), 'ut_unit is not set (default encoding)')

      call unit1%free()
      call finalize_udunits_system()
      
   end subroutine test_construct_unit