n4n5
ab67947321
fix clippy tests
2024-06-30 16:27:08 +02:00
Ben Wiederhake
a699bfd1fb
uniq: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Terts Diepraam
d060134d97
uniq
: print version and help on stdout again (#6123 )
...
* uniq: print version and help on stdout again
* uniq: format test
* uniq: replace redundant closure with fn
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-03-25 09:40:36 +01:00
Daniel Hofstetter
c85970485a
uniq: use concat! in tests for better readability
2024-02-26 16:37:01 +01:00
Ben Wiederhake
e91d0bd14f
uniq: fix flaky test gnu_tests
...
The testcase tries to write to the stdin pipe while the process under
test is simultaneously exiting with an error code. Naturally, this is a
race, and we should ignore any stdin write errors. However, adding this
feature to the list makes it even more unreadable, and adds no real
value, so let's skip the input data entirely.
2024-02-25 17:59:09 +01:00
Yury Zhytkou
17174ab986
uniq
: pass remaining GNU tests (#5994 )
2024-02-25 09:45:37 +01:00
Leviticoh
b90b59c003
uniq: added support for deprecated -N
option ( #4228 )
2023-09-24 14:44:44 +02: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
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
72862512da
uniq: set default missing value for args
2022-06-30 11:52:46 +02:00
Sylvestre Ledru
7d8b1de213
uniq: Disable one of the gnu test for failing too often
...
See: https://github.com/uutils/coreutils/issues/3509
2022-05-10 13:54:33 +02:00
Terts Diepraam
87f06637a9
tests/uniq: add GNU tests as Rust tests
...
tests/uniq: fix and uncomment test case 120
2022-04-17 16:50:18 +02:00
Thomas Queiroz
1d8381064a
tests/uniq: update test
2021-10-24 02:59:50 -03:00
Jan Scheer
3aeccfd802
fix a lot of clippy warnings
2021-05-29 15:11:22 +02:00
Yağız can Değirmenci
071899d24d
tests: delete 'error:' prefix from the tests
2021-05-26 02:45:53 +03:00
Chirag Jadwani
19c6a42de5
uniq: implement group option
2021-04-04 15:22:17 +05:30
Chirag Jadwani
ce4342d12e
uniq: Fix panic on invalid utf-8 input
2021-03-15 18:48:54 +05:30
Sylvestre Ledru
41ba5ed913
refactor(uniq): Move to clap + add a test ( #1626 )
2020-11-21 09:52:40 +01:00
Roy Ivy III
de0375f909
tests ~ reorganize tests
2020-06-01 18:30:04 -05:00