New test cases demonstrating fixed bugs, and the reason why

fmtcheck can't be used.
This commit is contained in:
dds 2006-12-03 19:18:41 +00:00
parent b3ab8f2011
commit db1000c626
21 changed files with 201 additions and 1 deletions

View File

@ -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()

View File

@ -0,0 +1,10 @@
a1b
a2b
a3b
a4b
a5b
a6b
a7b
a8b
a9b
aAb

View File

@ -0,0 +1,10 @@
a80000000b
a80000001b
a80000002b
a80000003b
a80000004b
a80000005b
a80000006b
a80000007b
a80000008b
a80000009b

View File

@ -0,0 +1,10 @@
a!b
a"b
a#b
a$b
a%b
a&b
a'b
a(b
a)b
a+b

View File

@ -0,0 +1,10 @@
a-5b
a-4b
a-3b
a-2b
a-1b
a0b
a1b
a2b
a3b
a4b

View File

@ -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

View File

@ -0,0 +1,10 @@
a1.0b
a2.0b
a3.0b
a4.0b
a5.0b
a6.0b
a7.0b
a8.0b
a9.0b
a10.0b

View File

@ -0,0 +1,10 @@
a 1b
a 2b
a 3b
a 4b
a 5b
a 6b
a 7b
a 8b
a 9b
a 10b

View File

@ -0,0 +1,10 @@
a0.2b
a1.2b
a2.2b
a3.2b
a4.2b
a5.2b
a6.2b
a7.2b
a8.2b
a9.2b

View File

@ -0,0 +1,10 @@
a1b
a2b
a3b
a4b
a5b
a6b
a7b
a10b
a11b
a12b

View File

@ -0,0 +1,10 @@
%1%%
%2%%
%3%%
%4%%
%5%%
%6%%
%7%%
%8%%
%9%%
%10%%

View File

@ -0,0 +1,10 @@
1%d%
2%d%
3%d%
4%d%
5%d%
6%d%
7%d%
8%d%
9%d%
10%d%

View File

@ -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

View File

@ -0,0 +1,10 @@
%d1%d%
%d2%d%
%d3%d%
%d4%d%
%d5%d%
%d6%d%
%d7%d%
%d8%d%
%d9%d%
%d10%d%

View File

@ -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

View File

@ -0,0 +1,10 @@
1%
2%
3%
4%
5%
6%
7%
8%
9%
10%

View File

@ -0,0 +1,10 @@
a1b
a2b
a3b
a4b
a5b
a6b
a7b
a8b
a9b
a10b

View File

@ -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

View File

@ -0,0 +1,10 @@
a1b
a2b
a3b
a4b
a5b
a6b
a7b
a8b
a9b
aab