You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
When comparing the actual output with the expected output, if a new line is added at the beginning of the output, the following panic happens:
failures:
---- test stdout ----
thread 'test' panicked at 'attempt to subtract with overflow', ~/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/assert_cli-0.6.1/src/diff.rs:18:29
assert_cli
version: 0.6.1When comparing the actual output with the expected output, if a new line is added at the beginning of the output, the following panic happens:
The problem happens at line:
assert_cli/src/diff.rs
Line 18 in 973ebcf
If
i
is 0, meaning that the diff is an addition to the first line, the panic happens.For example, consider the code:
If the output is
Line 0\nLine 1\nLine 2\n Line 3
(Line 0
added at the beginning) , the panic happens.The text was updated successfully, but these errors were encountered: