Comments (1)
Thinking about this some more, I don't think hash keys should ever be sorted. I think we should use the expected value as the source of truth for how keys should appear, because oftentimes you're looking at a failing test and comparing the output to what you've written. In other words you don't know what the actual value is, but you do know what the expected value is (because you wrote it).
from super_diff.
Related Issues (20)
- Make a video walkthrough of the internals (with perhaps a better diagram)
- Add a disclaimer about `include`, `contain_exactly`, and `match_array`
- Don't show diff if comparing with an empty collection
- CI takes a very long time to run HOT 1
- Make it easier to run all tests across all appraisals locally
- Failed Assertions on Date Instances Do Not Output a Diff HOT 4
- Rails 7 Assertion on ActionDispatch::TestResponse: undefined method `keys' for nil:NilClass HOT 4
- If a trailing newline is missing from actual vs. expected, it is not shown in the diff
- Take a look at Concordance
- How to Enable the Diff Based on a Tag
- NoMethodError when matcher is passed to `raise_error`
- controller test broken: eval error: undefined method `keys' for nil:NilClass HOT 3
- super_diff removes most rspec color output when run with parallel_tests HOT 2
- Premature calculation of `actual` description when generating matcher description
- Support for diffing message expectations? HOT 1
- wrong number of arguments HOT 2
- Less color output + no diff when using super_diff
- Add literate documentation
- undefined method error in previously working rspecs HOT 3
- Use difftastic internally?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super_diff.