Skip to content

Bad/misleading failure message when comparing different datatypes #334

@jgebal

Description

@jgebal

Currently when comparing two different datatypes for equality we get something like below:

5) object_compare_different_type
      The matcher 'equal' cannot be used with data type (ut3.demo_department_new).
      at "UT3.DEMO_EQUAL_MATCHER", line 69 ut.expect(anydata.convertObject(l_actual)).to_equal(anydata.convertObject(l_expected));

You can see it on travis-ci build

This should be more of a message like:

      The matcher 'equal' cannot be used to compare datatypes (ut3.demo_department_new) and (ut3.demo_department).

The message is misleading and could make developer think that the matcher is not capable of evaluating the given datatype.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions