Olivier Tilloy
8a3a977d2c
Update the expected error message for Windows
2024-06-04 14:57:50 +02:00
Olivier Tilloy
fa4e0c6097
Make error message consistent with GNU diff's implementation when failing to read input file(s)
2024-06-04 14:57:50 +02:00
Tanmay Patil
8c6a648aef
Merge branch 'main' into handle-directory-input
2024-04-23 23:11:31 +05:30
Tanmay Patil
0304391bc5
Create test files in temporary directory
2024-04-23 22:44:06 +05:30
Sylvestre Ledru
8de0ca60d1
Merge pull request #52 from oSoMoN/long-options
...
Handle long option names for the supported output styles…
2024-04-23 18:44:47 +02:00
Olivier Tilloy
3dc3fdf5cd
Un-hardcode a test filename in an integration test ( fixes #61 )
2024-04-23 18:00:56 +02:00
Olivier Tilloy
37fe1ae808
Handle --normal, -e and --ed options
2024-04-22 18:01:00 +02:00
Sylvestre Ledru
3a8eddfe2c
Fix typos
2024-04-21 16:07:01 +02:00
Tanmay Patil
476e69ee20
Windows: Fix tests
2024-04-21 18:06:15 +05:30
Tanmay Patil
65993d6a13
Add tests for diff FILE DIRECTORY
2024-04-21 16:10:48 +05:30
Tanmay Patil
39d2ece187
Handle directory-file and file-directory comparisons in the diff
...
GNU diff treats `diff DIRECTORY FILE` as `diff DIRECTORY/FILE FILE`
2024-04-21 16:10:48 +05:30
Tanmay Patil
900e1c3a68
Tests: Replace modification time in diff with "TIMESTAMP" placeholder
2024-04-14 13:43:30 +05:30
Tanmay Patil
86bd05c739
Merge branch 'context-diff-modification-time' of github.com:TanmayPatil105/diffutils into context-diff-modification-time
2024-04-10 22:31:09 +05:30
Tanmay Patil
00e18a6b0c
Define assert_diff_eq macro for context&unified diff comparison
2024-04-10 22:20:48 +05:30
Olivier Tilloy
e1c319f96b
Add an integration test for reading from "/dev/stdin" on unix-like systems
2024-04-08 22:36:14 +02:00
Olivier Tilloy
6dc34fed44
Handle the rewrite of "-" to "/dev/stdin" in main to leave the filenames unchanged ( fixes #46 )
2024-04-08 20:21:24 +02:00
Olivier Tilloy
6a152cdc7f
Add an integration test for reading data from stdin
2024-04-02 22:34:42 +02:00
Olivier Tilloy
4ed7ea1553
Implement -q/--brief option ( fixes #19 ) ( #20 )
...
* Implement -q/--brief option
* Optimization: stop analyzing the files as soon as there are any differences
* Unit tests for the stop_early parameter
* Simplify checks
2024-03-19 11:45:06 +01:00
Olivier Tilloy
c68d386170
Implement -s/--report-identical-files option ( fixes #23 )
2024-03-01 14:45:41 +01:00
Olivier Tilloy
0a67bf9fb8
Add integration tests that check the exit codes and stdout/stderr
2024-02-22 17:26:24 +01:00
Olivier Tilloy
790ef1e633
Run the GNU test suite in CI ( fixes #8 ) ( #13 )
2024-02-17 15:27:52 +01:00