-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make assert-same-values show what's different #48
Labels
enhancement
New feature or request
Comments
rhdunn
added a commit
to rhdunn/marklogic-unit-test
that referenced
this issue
Jan 8, 2019
This adds an assert-throws-message function that tests the error:message of an error that works in the same way as assert-throws-message. This is useful for testing the message that gets reported by an assert helper function for when that function provides additional information.
rhdunn
added a commit
to rhdunn/marklogic-unit-test
that referenced
this issue
Jan 8, 2019
This creates a new assert-equal-message function to provide a custom error message to the "Assert Equal failed" message reported by assert-equal.
rhdunn
added a commit
to rhdunn/marklogic-unit-test
that referenced
this issue
Jan 8, 2019
This provides a way of comparing two ordered sequences that reports details of how the sequences differ, allowing the user to locate the cause of the failure.
rhdunn
added a commit
to rhdunn/marklogic-unit-test
that referenced
this issue
Jan 8, 2019
This changes assert-same-values to use the new assert-equal-seq function to report the specific item that differs, or item count if the sequences are of different sizes and all items upto the count difference are equal.
May do this in 1.4.0 if there's an easy way to do something useful. Otherwise will close. |
This link may help:
https://stackoverflow.com/questions/59772188/how-to-mark-the-differences-between-two-strings
…On Wed, Aug 9, 2023 at 1:47 PM Rob Rudin ***@***.***> wrote:
May do this in 1.4.0 if there's an easy way to do something useful.
Otherwise will close.
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBA7LRGM2MHZ4VUUYT4PM3XUPEMNANCNFSM4GIS4T6A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
I can offer a first pass but don't have time for extensive testing right now:
This returns
|
DEVEXP-555 |
Holding off on this as we'd like to try implementing assert-same-values with a real quality check first instead of having to sort. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
assert-same-values
function tells you when the expected doesn't match the actual and shows both sequences. It would be much more helpful if it showed what was different between them.The text was updated successfully, but these errors were encountered: