Wilfred Hughes
5a51c02157
Fix crash when the last hunk includes the trailing newline at EOF
...
Input cleaning should happen before we diff the content, not during
display. Previously display would crash due to line numbers
referencing the line that had been stripped.
Fixes #713
Fixes #739
Fixes #742
2024-07-26 08:54:20 +07:00
Wilfred Hughes
5c40cd0282
Prefer _1 and _2 naming for test files
...
This is less to type, and it's now alphabetical, so e.g.
sample_files/*.kt just works as a test argument.
2024-04-28 23:28:06 +07:00
Alexis (Poliorcetics) Bourget
573d607051
fix: diff hidden but non-ignored files when walking directories
2024-04-01 08:32:46 +07:00
Alexis (Poliorcetics) Bourget
1f79d16606
tests: show that hidden files are not picked up by difftastic
2024-04-01 08:32:46 +07:00
Wilfred Hughes
7346c895f0
Fix new files claiming they have permission changes
2024-03-04 22:54:57 +07:00
Wilfred Hughes
0b202dc1d0
Support CLI tests on cross-compiled binaries
2023-11-26 01:41:11 +07:00
Wilfred Hughes
243a4a5f48
Group imports consistently
...
This corresponds to:
$ cargo +nightly fmt -- --config group_imports=StdExternalCrate
Since this option is only available on nightly, I'm not adding a
rustfmt.toml to enforce this, just doing it as a one-off run.
2023-09-12 12:32:51 +07:00
Wilfred Hughes
de0e1f5bda
Add test for --ignore-comments option
2023-07-26 20:15:13 +07:00
Wilfred Hughes
202265a03b
cargo fmt
2023-07-09 19:49:21 +07:00
Wilfred Hughes
e9abae90ab
Add basic smoke tests for debug dump options
2023-07-09 15:48:45 +07:00
Wilfred Hughes
bde09efb80
Update changelog and tests for new path printing logic
2023-04-15 21:08:40 +07:00
Wilfred Hughes
9759d89977
Add test for git-diff arguments when a rename occurs
2023-04-15 00:14:24 +07:00
Wilfred Hughes
713220613e
Support diffing directories where files are only in one side
...
This was broken in 1e9f43768 . Add test.
Fixes #500
2023-03-24 23:57:49 +07:00
Wilfred Hughes
4753c3fc16
Fix spelling
2023-03-24 23:47:35 +07:00
Wilfred Hughes
7fbe0d6c2f
Improve UTF-16 detection heuristics and add test
2023-03-16 00:31:58 +07:00
Wilfred Hughes
c1dc132f4a
Add unit test for diffing binary files
2023-03-16 00:18:49 +07:00
Wilfred Hughes
e762f77a0b
Add a smoke test for inline display
2023-03-16 00:16:58 +07:00
Wilfred Hughes
fdc6db4c22
Simplify imports
2023-03-16 00:15:48 +07:00
Wilfred Hughes
3e4df7d7dd
Add CLI test for the example in #433
2023-03-16 00:13:41 +07:00
Wilfred Hughes
2ce8845f61
Add test for --list-languages
2023-03-03 08:44:34 +07:00
Wilfred Hughes
2d1a2c906e
Count errors on the root node too
...
Fixes #377
2023-03-03 00:25:41 +07:00
Wilfred Hughes
03985066f5
Treat Makefile text as atoms
...
Improves another case identified in #476
2023-03-02 23:52:01 +07:00
Wilfred Hughes
c33d7f2520
Support --check-only on text files too
2023-03-02 08:50:45 +07:00
Wilfred Hughes
afeb6aba03
Add test for --check-only
2023-02-24 08:48:09 +07:00
Wilfred Hughes
f7f3e18fbf
rustfmt
2023-02-22 00:10:24 +07:00
Wilfred Hughes
adb25ed7f5
Add CLI test for --exit-code
2023-02-22 00:01:36 +07:00
Wilfred Hughes
5f2c9365a9
Add CLI integration tests
2023-02-21 18:14:33 +07:00