Luv-Ray
fb2399f56b
fix clippy ( #8275 )
...
* fix clippy
* update
* update
2025-06-27 09:15:24 +02:00
Sylvestre Ledru
a0179ea239
uutests: adjust the tests to use them
2025-03-28 21:40:31 +01:00
Sylvestre Ledru
18cb7dcf9e
Use the new function fails_with_code
...
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Sylvestre Ledru
b50a012d13
comm: implement the ordering check
...
A few comments:
* skip if the two args are pointing to the same file
* skip if the same content in the two files
* implement --check-order
* implement --nocheck-order
* output the right things on stderr
Should pass: tests/misc/comm
2025-01-18 09:22:41 +01:00
Sylvestre Ledru
4e45ca673c
comm: don't use files for test
2025-01-15 16:13:51 +01:00
Sylvestre Ledru
0cae322dfa
comm: generate an error if the input is a directory
...
tested by tests/misc/read-errors
2024-11-30 10:26:34 +01:00
Ben Wiederhake
884ef1f54b
comm: implement and test correct handling of repeated flags
2024-03-23 23:35:40 +01:00
Ben Wiederhake
801edbbcb4
comm: implement and test correct handling of repeated --output-delimiter
2024-03-23 23:35:40 +01:00
Ben Wiederhake
1fa0b032e5
comm: permit and test separators that contain a hyphen
2024-03-23 23:35:40 +01:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Daniel Hofstetter
6988eb7ec6
tests: expand wildcard imports
2023-03-20 15:32:35 +01:00
Daniel Hofstetter
a7a55c7433
comm: allow multiple occurrence of -z
2023-03-02 16:18:42 +01:00
Daniel Hofstetter
0d782e09c1
comm: implement --zero-terminated
2023-03-01 16:59:51 +01:00
Sylvestre Ledru
d3fc0e8706
Merge pull request #4314 from cakebaker/comm_total_with_output_delimiter
...
comm: use delimiter on "total" line
2023-02-16 14:24:02 +01:00
Daniel Hofstetter
a22749ec57
comm: enable "no_arguments" & "one_argument" tests
2023-02-09 10:51:32 +01:00
Daniel Hofstetter
ccf999473c
comm: use delimiter on "total" line
2023-02-07 09:22:55 +01:00
Sylvestre Ledru
d8c3205d4c
Merge pull request #4300 from cakebaker/comm_total
...
comm: implement --total
2023-01-28 18:14:17 +01:00
Daniel Hofstetter
b06485990d
comm: implement --total
2023-01-24 16:49:43 +01:00
Joining7943
1fadeb43b2
tests/util: Do not trim stderr in CmdResult::stderr_is. Add method stderr_trimmed_is.
...
Fix tests assert whitespace instead of trimming it. Disable some tests in `test_tr` because `tr`
produces too many newlines.
2023-01-22 14:56:19 +01:00
Terts Diepraam
9177cb7b24
all: add tests for usage error exit code
2022-09-10 20:59:42 +02:00
Daniel Hofstetter
249b398906
comm: enable "output_delimiter" test
2022-07-07 15:22:43 +02:00
Daniel Hofstetter
ac35a1b985
comm: use NUL if delimiter is empty
2022-07-06 13:50:23 +02:00
Terts Diepraam
18369dc0be
all: use array intoiterator
2022-04-05 10:39:31 +02:00
Jeffrey Finkelstein
2aebfc9f8d
comm: return UResult from uumain() function
2021-12-24 13:40:18 -05:00
Roy Ivy III
3f35e0a421
refactor ~ cargo make format
2021-05-31 08:23:58 -05:00
Roy Ivy III
4e20dedf58
tests ~ refactor/polish spelling (comments, names, and exceptions)
2021-05-31 08:23:57 -05:00
Jan Scheer
3aeccfd802
fix a lot of clippy warnings
2021-05-29 15:11:22 +02:00
Roy Ivy III
de0375f909
tests ~ reorganize tests
2020-06-01 18:30:04 -05:00