Error messages use <> to delimit a displayed value, this was made to disambiguate empty/blank value.
The issue is that it makes error messages harder to read most of the time, thus removing it will be an improvement.
If it's not already the case, indent with 2 spaces before displaying values on new lines.
With <> and 1 space identation
[Test]
Expecting:
<8>
to be less than:
<6>
Without <> and 2 space indentation
[Test]
Expecting:
8
to be less than:
6
This affects the majority of error messages, so if you want to contribute to this just take one (unchecked) error message from the list below and raise a PR:
@epeee You can assign this to me, I am new to the community and like to contribute to it.
@himadri-mandal I'd vote for leaving it unassigned for now (since there are still quite some messages to migrate).
@himadri-mandal just let us know which ones you are picking up so we don't step on each other 馃檪
@himadri-mandal just let us know which ones you are picking up so we don't step on each other 馃檪
I am starting from the top. My next pull request(s) will have the following.
ClassModifierShouldBe
ConditionAndGroupGenericParameterTypeShouldBeTheSame
ElementsShouldBeAtLeast
ElementsShouldBeAtMost
ElementsShouldBeExactly
ElementsShouldBe
ElementsShouldHaveAtLeast
ElementsShouldHaveAtMost
ElementsShouldHaveExactly
ElementsShouldHave
ElementsShouldMatch
ElementsShouldNotBe
ElementsShouldNotHave
ElementsShouldSatisfy
NoElementsShouldMatch
@scordio Is it ok to submit multiple commits on a single pull request, I see #2097 is still not merged, or am I missing anything.
@himadri-mandal I think it is fine, each change is anyway small and it is not difficult to review them together.
Most helpful comment
I am starting from the top. My next pull request(s) will have the following.
ClassModifierShouldBe
ConditionAndGroupGenericParameterTypeShouldBeTheSame
ElementsShouldBeAtLeast
ElementsShouldBeAtMost
ElementsShouldBeExactly
ElementsShouldBe
ElementsShouldHaveAtLeast
ElementsShouldHaveAtMost
ElementsShouldHaveExactly
ElementsShouldHave
ElementsShouldMatch
ElementsShouldNotBe
ElementsShouldNotHave
ElementsShouldSatisfy
NoElementsShouldMatch