Closed fabricereix closed 1 week ago
/accept
🔨 Auto rebase from Orange-OpenSource/hurl/master
succeeds, Orange-OpenSource/hurl/error/improve-message
now embeds these commits:
❌ Some checks are still failing, please fix them before trying to merge this pull request.
@fabricereix I struggled to see why we have different format method, maybe we could rationalize them:
In https://github.com/Orange-OpenSource/hurl/blob/884019c090b413a79d825104f07fea5c5a65cc0c/packages/hurl/src/runner/value.rs#L73
we have a fmt
method ( => to_string
) on Value
.
In the same file, we also have a _type
method https://github.com/Orange-OpenSource/hurl/blob/884019c090b413a79d825104f07fea5c5a65cc0c/packages/hurl/src/runner/value.rs#L98
which is almost not covered (and is_scalar
is also not used).
We have display
method which seems to have the same semantic as fmt
We also and expected
/ format
which is also a kind of "to_string" method
Yes, I've seen that duplication.
But I figured out that this refactoring should belong to another PR.
I've just renamed the expected
method to format
because it was confusing on an actual value.
/accept
🔨 Auto rebase from Orange-OpenSource/hurl/master
succeeds, Orange-OpenSource/hurl/error/improve-message
now embeds these commits:
✅ Pull request merged and closed by jcamiel
with fast forward merge..
# List of commits merged from Orange-OpenSource/hurl/error/improve-message
branch into Orange-OpenSource/hurl/master
branch:
The type for actual value has been added
The error message will be improved using standard 2 lines actual/expected in another PR.