diff options
Diffstat (limited to 'testsuite/sort.tests')
-rwxr-xr-x | testsuite/sort.tests | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests index ff33e21b4..8dbadbdae 100755 --- a/testsuite/sort.tests +++ b/testsuite/sort.tests | |||
@@ -219,4 +219,25 @@ testing "sort -h" \ | |||
219 | 219 | ||
220 | # testing "description" "command(s)" "result" "infile" "stdin" | 220 | # testing "description" "command(s)" "result" "infile" "stdin" |
221 | 221 | ||
222 | testing "sort -k2,2M" \ | ||
223 | "sort -k2,2M input" "\ | ||
224 | 3 March | ||
225 | 2 April | ||
226 | 1 May | ||
227 | " "\ | ||
228 | 2 April | ||
229 | 1 May | ||
230 | 3 March | ||
231 | " "" | ||
232 | |||
233 | testing "sort -s -u" \ | ||
234 | "sort -s -u -k 2 input" "\ | ||
235 | z a | ||
236 | z b | ||
237 | " "\ | ||
238 | z b | ||
239 | a b | ||
240 | z a | ||
241 | a a" "" | ||
242 | |||
222 | exit $FAILCOUNT | 243 | exit $FAILCOUNT |