Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/testsuite/uniq.tests
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/testsuite/uniq.tests
r1765 r2725 3 3 # SUSv3 compliant uniq tests. 4 4 # Copyright 2005 by Rob Landley <rob@landley.net> 5 # Licensed under GPL v2, see file LICENSE for details.5 # Licensed under GPLv2, see file LICENSE in this source tree. 6 6 7 7 # AUDIT: Full SUSv3 coverage (except internationalization). 8 8 9 . testing.sh9 . ./testing.sh 10 10 11 11 # testing "test name" "options" "expected result" "file input" "stdin" … … 42 42 #-d dups only 43 43 #-u 44 #-w max chars 44 45 45 46 # Test various command line options … … 50 51 "1 one\n2 two\n3 three\n" "" \ 51 52 "one\ntwo\ntwo\nthree\nthree\nthree\n" 52 testing "uniq -d (dups only) 53 testing "uniq -d (dups only)" "uniq -d" "two\nthree\n" "" \ 53 54 "one\ntwo\ntwo\nthree\nthree\nthree\n" 54 55 … … 61 62 aa bb cc9 62 63 " 64 testing "uniq -w (compare max characters)" "uniq -w 2" \ 65 "cc1 66 " "" \ 67 "cc1 68 cc2 69 cc3 70 " 71 72 testing "uniq -s -w (skip fields and compare max chars)" \ 73 "uniq -s 2 -w 2" \ 74 "aaccaa 75 " "" \ 76 "aaccaa 77 aaccbb 78 bbccaa 79 " 63 80 64 81 # -d is "Suppress the writing fo lines that are not repeated in the input."
Note:
See TracChangeset
for help on using the changeset viewer.