diff options
author | dds <dds@FreeBSD.org> | 2006-12-03 19:18:41 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2006-12-03 19:18:41 +0000 |
commit | db1000c626e71b479ab08f67c281717e1e1c635f (patch) | |
tree | 13c011df1a4b31ff26ec205354c12d9d5ee82f93 | |
parent | b3ab8f2011574fefd4ad8097c011e62a3edc5111 (diff) | |
download | FreeBSD-src-db1000c626e71b479ab08f67c281717e1e1c635f.zip FreeBSD-src-db1000c626e71b479ab08f67c281717e1e1c635f.tar.gz |
New test cases demonstrating fixed bugs, and the reason why
fmtcheck can't be used.
21 files changed, 201 insertions, 1 deletions
diff --git a/tools/regression/usr.bin/jot/regress.sh b/tools/regression/usr.bin/jot/regress.sh index 1f5746e..c71ade8 100644 --- a/tools/regression/usr.bin/jot/regress.sh +++ b/tools/regression/usr.bin/jot/regress.sh @@ -1,6 +1,6 @@ # $FreeBSD$ -echo 1..36 +echo 1..56 REGRESSION_START($1) @@ -40,5 +40,25 @@ REGRESSION_TEST(`stutter', `jot - 9 0 -.5') REGRESSION_TEST(`block', `jot -b x 512') REGRESSION_TEST(`tabs', `jot -s, - 10 132 4') REGRESSION_TEST(`grep', `jot -s "" -b . 80') +REGRESSION_TEST(`wf', `jot -w "a%.1fb" 10') +REGRESSION_TEST(`we', `jot -w "a%eb" 10') +REGRESSION_TEST(`wwe', `jot -w "a%-15eb" 10') +REGRESSION_TEST(`wg', `jot -w "a%20gb" 10') +REGRESSION_TEST(`wc', `jot -w "a%cb" 10 33 43') +REGRESSION_TEST(`wgd', `jot -w "a%gb" 10 .2') +REGRESSION_TEST(`wu', `jot -w "a%ub" 10') +REGRESSION_TEST(`wo', `jot -w "a%ob" 10') +REGRESSION_TEST(`wx', `jot -w "a%xb" 10') +REGRESSION_TEST(`wX', `jot -w "a%Xb" 10') +REGRESSION_TEST(`wXl', `jot -w "a%Xb" 10 2147483648') +REGRESSION_TEST(`wdl', `jot -w "a%db" 10 2147483648') +REGRESSION_TEST(`wxn', `jot -w "a%xb" 10 -5') +REGRESSION_TEST(`wdn', `jot -w "a%db" 10 -5') +REGRESSION_TEST(`wp1', `jot -w "%%%d%%%%" 10') +REGRESSION_TEST(`wp2', `jot -w "%d%%d%%" 10') +REGRESSION_TEST(`wp3', `jot -w "a%%A%%%d%%B%%b" 10') +REGRESSION_TEST(`wp4', `jot -w "%%d%d%%d%%" 10') +REGRESSION_TEST(`wp5', `jot -w ftp://www.example.com/pub/uploaded%%20files/disk%03d.iso 10') +REGRESSION_TEST(`wp6', `jot -w "%d%" 10') REGRESSION_END() diff --git a/tools/regression/usr.bin/jot/regress.wX.out b/tools/regression/usr.bin/jot/regress.wX.out new file mode 100644 index 0000000..dc7f5e9 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wX.out @@ -0,0 +1,10 @@ +a1b +a2b +a3b +a4b +a5b +a6b +a7b +a8b +a9b +aAb diff --git a/tools/regression/usr.bin/jot/regress.wXl.out b/tools/regression/usr.bin/jot/regress.wXl.out new file mode 100644 index 0000000..cf6b9b7 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wXl.out @@ -0,0 +1,10 @@ +a80000000b +a80000001b +a80000002b +a80000003b +a80000004b +a80000005b +a80000006b +a80000007b +a80000008b +a80000009b diff --git a/tools/regression/usr.bin/jot/regress.wc.out b/tools/regression/usr.bin/jot/regress.wc.out new file mode 100644 index 0000000..f6e77d9 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wc.out @@ -0,0 +1,10 @@ +a!b +a"b +a#b +a$b +a%b +a&b +a'b +a(b +a)b +a+b diff --git a/tools/regression/usr.bin/jot/regress.wdl.out b/tools/regression/usr.bin/jot/regress.wdl.out new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wdl.out diff --git a/tools/regression/usr.bin/jot/regress.wdn.out b/tools/regression/usr.bin/jot/regress.wdn.out new file mode 100644 index 0000000..c4027de --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wdn.out @@ -0,0 +1,10 @@ +a-5b +a-4b +a-3b +a-2b +a-1b +a0b +a1b +a2b +a3b +a4b diff --git a/tools/regression/usr.bin/jot/regress.we.out b/tools/regression/usr.bin/jot/regress.we.out new file mode 100644 index 0000000..5a3727d --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.we.out @@ -0,0 +1,10 @@ +a1.000000e+00b +a2.000000e+00b +a3.000000e+00b +a4.000000e+00b +a5.000000e+00b +a6.000000e+00b +a7.000000e+00b +a8.000000e+00b +a9.000000e+00b +a1.000000e+01b diff --git a/tools/regression/usr.bin/jot/regress.wf.out b/tools/regression/usr.bin/jot/regress.wf.out new file mode 100644 index 0000000..7fd3021 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wf.out @@ -0,0 +1,10 @@ +a1.0b +a2.0b +a3.0b +a4.0b +a5.0b +a6.0b +a7.0b +a8.0b +a9.0b +a10.0b diff --git a/tools/regression/usr.bin/jot/regress.wg.out b/tools/regression/usr.bin/jot/regress.wg.out new file mode 100644 index 0000000..5c33e35 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wg.out @@ -0,0 +1,10 @@ +a 1b +a 2b +a 3b +a 4b +a 5b +a 6b +a 7b +a 8b +a 9b +a 10b diff --git a/tools/regression/usr.bin/jot/regress.wgd.out b/tools/regression/usr.bin/jot/regress.wgd.out new file mode 100644 index 0000000..0f3f96d0 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wgd.out @@ -0,0 +1,10 @@ +a0.2b +a1.2b +a2.2b +a3.2b +a4.2b +a5.2b +a6.2b +a7.2b +a8.2b +a9.2b diff --git a/tools/regression/usr.bin/jot/regress.wo.out b/tools/regression/usr.bin/jot/regress.wo.out new file mode 100644 index 0000000..4c89c92 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wo.out @@ -0,0 +1,10 @@ +a1b +a2b +a3b +a4b +a5b +a6b +a7b +a10b +a11b +a12b diff --git a/tools/regression/usr.bin/jot/regress.wp1.out b/tools/regression/usr.bin/jot/regress.wp1.out new file mode 100644 index 0000000..6a5e94c --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wp1.out @@ -0,0 +1,10 @@ +%1%% +%2%% +%3%% +%4%% +%5%% +%6%% +%7%% +%8%% +%9%% +%10%% diff --git a/tools/regression/usr.bin/jot/regress.wp2.out b/tools/regression/usr.bin/jot/regress.wp2.out new file mode 100644 index 0000000..a489d69 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wp2.out @@ -0,0 +1,10 @@ +1%d% +2%d% +3%d% +4%d% +5%d% +6%d% +7%d% +8%d% +9%d% +10%d% diff --git a/tools/regression/usr.bin/jot/regress.wp3.out b/tools/regression/usr.bin/jot/regress.wp3.out new file mode 100644 index 0000000..95e31bb --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wp3.out @@ -0,0 +1,10 @@ +a%A%1%B%b +a%A%2%B%b +a%A%3%B%b +a%A%4%B%b +a%A%5%B%b +a%A%6%B%b +a%A%7%B%b +a%A%8%B%b +a%A%9%B%b +a%A%10%B%b diff --git a/tools/regression/usr.bin/jot/regress.wp4.out b/tools/regression/usr.bin/jot/regress.wp4.out new file mode 100644 index 0000000..cd177b2 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wp4.out @@ -0,0 +1,10 @@ +%d1%d% +%d2%d% +%d3%d% +%d4%d% +%d5%d% +%d6%d% +%d7%d% +%d8%d% +%d9%d% +%d10%d% diff --git a/tools/regression/usr.bin/jot/regress.wp5.out b/tools/regression/usr.bin/jot/regress.wp5.out new file mode 100644 index 0000000..2889d8f --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wp5.out @@ -0,0 +1,10 @@ +ftp://www.example.com/pub/uploaded%20files/disk001.iso +ftp://www.example.com/pub/uploaded%20files/disk002.iso +ftp://www.example.com/pub/uploaded%20files/disk003.iso +ftp://www.example.com/pub/uploaded%20files/disk004.iso +ftp://www.example.com/pub/uploaded%20files/disk005.iso +ftp://www.example.com/pub/uploaded%20files/disk006.iso +ftp://www.example.com/pub/uploaded%20files/disk007.iso +ftp://www.example.com/pub/uploaded%20files/disk008.iso +ftp://www.example.com/pub/uploaded%20files/disk009.iso +ftp://www.example.com/pub/uploaded%20files/disk010.iso diff --git a/tools/regression/usr.bin/jot/regress.wp6.out b/tools/regression/usr.bin/jot/regress.wp6.out new file mode 100644 index 0000000..1f097f0 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wp6.out @@ -0,0 +1,10 @@ +1% +2% +3% +4% +5% +6% +7% +8% +9% +10% diff --git a/tools/regression/usr.bin/jot/regress.wu.out b/tools/regression/usr.bin/jot/regress.wu.out new file mode 100644 index 0000000..c39e5f6 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wu.out @@ -0,0 +1,10 @@ +a1b +a2b +a3b +a4b +a5b +a6b +a7b +a8b +a9b +a10b diff --git a/tools/regression/usr.bin/jot/regress.wwe.out b/tools/regression/usr.bin/jot/regress.wwe.out new file mode 100644 index 0000000..7c873a5 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wwe.out @@ -0,0 +1,10 @@ +a1.000000e+00 b +a2.000000e+00 b +a3.000000e+00 b +a4.000000e+00 b +a5.000000e+00 b +a6.000000e+00 b +a7.000000e+00 b +a8.000000e+00 b +a9.000000e+00 b +a1.000000e+01 b diff --git a/tools/regression/usr.bin/jot/regress.wx.out b/tools/regression/usr.bin/jot/regress.wx.out new file mode 100644 index 0000000..5520d01 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wx.out @@ -0,0 +1,10 @@ +a1b +a2b +a3b +a4b +a5b +a6b +a7b +a8b +a9b +aab diff --git a/tools/regression/usr.bin/jot/regress.wxn.out b/tools/regression/usr.bin/jot/regress.wxn.out new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tools/regression/usr.bin/jot/regress.wxn.out |