# File test/src/simple_parser_test.rb, line 415
  def verifyArrayTypeMismatch(mtd, n_arg, n_elem, expected, actual)
    begin
      yield
      assert_fail('should have failed with type mismatch')
      rescue ArgumentError => e
        assert_equal("#{actual} assigned to #{expected} for the #{n_elem} element of the #{n_arg} argument of #{mtd}.",
          e.message)
    end
  end