Comments (4)
yes! i'm thinking about separating display and debug into two macros. The problem with using Debug
by default is that all multiline strings will be printed as A\nB\nC
instead of
A
B
C
from k9.
Uhm I hadn't though about that, same goes with pretty print?
from k9.
from k9.
fixed with snapshot!()
macro
from k9.
Related Issues (20)
- assertion panic backtrace should point to the test source's as the first line
- Warnings in Rust 1.51 HOT 3
- Trailing space after a backspace in a string will lead to a wrong snapshot
- https://docs.rs/k9/latest/k9/ has version 0.11.6 rather than 0.12
- display only relevant parts in diff string HOT 1
- codeframe in assertion failures HOT 1
- Add docs for crate features
- Make the list of assertions in README.md links to rust docs
- Inline snapshots TODO
- [WIP] Preliminary prototype for collapsed output HOT 12
- assert_err_matches_inline_snapshot!()
- assert_equal does not handle comparing vectors to arrays HOT 5
- Snapshots won't work with cargo workspaces
- `assert_eq!(left, right, format, args...)` parity HOT 1
- only use `r##" "##` escaping when needed HOT 1
- k9::assert_matches_inline_snapshot!("blah") fails to find AST node
- adjust inline snapshot failure message to not include inline snapshot literal twice
- replace all .unwrap() and .expect() with `?` HOT 2
- better error message for snapshot failure (when no snapshot present) HOT 5
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 k9.