Skip to content
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

Order shouldn't matter in comparison #50

Open
msscaroso opened this issue Feb 6, 2021 · 0 comments
Open

Order shouldn't matter in comparison #50

msscaroso opened this issue Feb 6, 2021 · 0 comments

Comments

@msscaroso
Copy link

The two yaml files are equivalent to the same python dict (i. e. if they are loaded into a dict, they would be equal)

But the comparison of data_regression.check does consider the order of the fields and a test can fail using one file and pass using the other.

Is this by design or just a consequence of how the yaml files are compared?

abc: "123"
foo: "bar"
foo: "bar"
abc: "123"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant