[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: sort: check that non-blank characters aren't treated as b
|
From: |
Collin Funk |
|
Subject: |
[PATCH] tests: sort: check that non-blank characters aren't treated as blank |
|
Date: |
Wed, 26 Aug 2026 00:24:37 -0700 |
* tests/sort/sort.pl (@Tests): Add a few test cases.
---
tests/sort/sort.pl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/sort/sort.pl b/tests/sort/sort.pl
index 737f7a21c..529edef11 100755
--- a/tests/sort/sort.pl
+++ b/tests/sort/sort.pl
@@ -421,6 +421,11 @@ my @Tests =
{ERR=>"$prog: invalid --parallel argument '-1'\n"}],
['invalid-parallel-2', '--parallel a', {IN=>""}, {EXIT=>2},
{ERR=>"$prog: invalid --parallel argument 'a'\n"}],
+
+# Test that non-blank spaces aren't treated as blank.
+['nonblank-sep-k1', '-k2', {IN=>"a\f\nb\n"}, {OUT=>"a\f\nb\n"}],
+['nonblank-leading-n1', '-n', {IN=>"a\n\f1\n"}, {OUT=>"\f1\na\n"}],
+['nonblank-leading-d1', '-d', {IN=>"\fb\na\n"}, {OUT=>"a\n\fb\n"}],
);
# Add _POSIX2_VERSION=199209 to the environment of each test
--
2.55.0
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: sort: check that non-blank characters aren't treated as blank,
Collin Funk <=