test_fail_add_existing_dim_with_mismatch Subroutine

public subroutine test_fail_add_existing_dim_with_mismatch()

Arguments

None

Calls

proc~~test_fail_add_existing_dim_with_mismatch~~CallsGraph proc~test_fail_add_existing_dim_with_mismatch test_fail_add_existing_dim_with_mismatch assertexceptionraised assertexceptionraised proc~test_fail_add_existing_dim_with_mismatch->assertexceptionraised none~add_dimension FileMetadata%add_dimension proc~test_fail_add_existing_dim_with_mismatch->none~add_dimension insert insert none~add_dimension->insert interface~mapl_assert MAPL_Assert none~add_dimension->interface~mapl_assert none~get_dimension FileMetadata%get_dimension none~add_dimension->none~get_dimension none~has_dimension FileMetadata%has_dimension none~add_dimension->none~has_dimension proc~mapl_return MAPL_Return none~add_dimension->proc~mapl_return none~get_dimension->proc~mapl_return at at none~get_dimension->at find find none~get_dimension->find none~has_dimension->proc~mapl_return none~has_dimension->find proc~mapl_return->insert proc~mapl_return->at proc~mapl_throw_exception MAPL_throw_exception proc~mapl_return->proc~mapl_throw_exception

Source Code

   subroutine test_fail_add_existing_dim_with_mismatch()
      type (FileMetadata) :: cf

      call cf%add_dimension('x', 10)
      call cf%add_dimension('x', 11)

      @assertExceptionRaised('FileMetadata::add_dimension() - dimension already exists with different extent.')

   end subroutine test_fail_add_existing_dim_with_mismatch