The string diffs from predicates are great, but would be easier to read if they started in the same column.
I have this code using assert_fs:
temp.child("subdir")
.child("subfile")
.assert("Must I paint you a picture");
I get this output:
---- transport::local::test::write_file stdout ----
thread 'transport::local::test::write_file' panicked at 'Unexpected file, failed var - original <= 0
└── var - original <= 0
├── original: Must I paint you a picture
├── actual distance: 2
├── diff: Must I paint you a picture
Must I paint you a picture?
└── var as str: Must I paint you a picture?
I would prefer something like this:
---- transport::local::test::write_file stdout ----
thread 'transport::local::test::write_file' panicked at 'Unexpected file, failed var - original <= 0
└── var - original <= 0
├── original: Must I paint you a picture
├── actual distance: 2
├── diff:
Must I paint you a picture
Must I paint you a picture?
└── var as str: Must I paint you a picture?
The string diffs from predicates are great, but would be easier to read if they started in the same column.
I have this code using assert_fs:
I get this output:
I would prefer something like this:
Meta
predicates-rs version: 1.0.4
rustc --version --verbose
: