diff options
Diffstat (limited to 'testsuite/sort.tests')
-rwxr-xr-x | testsuite/sort.tests | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests index c51a8e475..ff33e21b4 100755 --- a/testsuite/sort.tests +++ b/testsuite/sort.tests | |||
@@ -175,6 +175,48 @@ testing "sort file in place" \ | |||
175 | 111 | 175 | 111 |
176 | " "" | 176 | " "" |
177 | 177 | ||
178 | testing "sort -sr (stable and reverse) does NOT reverse 'stable' ordering" \ | ||
179 | "sort -k2 -r -s input" "\ | ||
180 | b 2 | ||
181 | d 2 | ||
182 | a 1 | ||
183 | c 1 | ||
184 | " "\ | ||
185 | a 1 | ||
186 | b 2 | ||
187 | c 1 | ||
188 | d 2 | ||
189 | " "" | ||
190 | |||
191 | testing "sort -h" \ | ||
192 | "sort -h input" "\ | ||
193 | 3e | ||
194 | 4m | ||
195 | 5y | ||
196 | 1023 | ||
197 | 1024 | ||
198 | 1025 | ||
199 | 3000 | ||
200 | 2K | ||
201 | 3k | ||
202 | 1M | ||
203 | 2E | ||
204 | 1Y | ||
205 | " "\ | ||
206 | 1Y | ||
207 | 5y | ||
208 | 1M | ||
209 | 2E | ||
210 | 3k | ||
211 | 3e | ||
212 | 2K | ||
213 | 4m | ||
214 | 1023 | ||
215 | 1025 | ||
216 | 3000 | ||
217 | 1024 | ||
218 | " "" | ||
219 | |||
178 | # testing "description" "command(s)" "result" "infile" "stdin" | 220 | # testing "description" "command(s)" "result" "infile" "stdin" |
179 | 221 | ||
180 | exit $FAILCOUNT | 222 | exit $FAILCOUNT |