sort.tst revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
# : : generated from sort.rt by mktest : : #
# regression tests for the sort glean plugin
UNIT sort
export LC_ALL=C
TEST 01 basics
EXEC -t, -k1,1 -k2,2n '-lglean,count,min="3,3n",min="4,4",max="3,3n",max="4,4r"'
INPUT - $'a,1,5,s
a,2,5,s
a,1,5,m
a,1,5,s
a,2,4,s
a,1,6,s
a,2,1,s
a,2,1,m
a,2,9,s
a,2,9,m
a,1,2,m
a,1,6,m
a,2,7,m
a,1,4,s
a,1,5,s
a,2,9,m'
OUTPUT - $'1/1/1 a,1,5,s
2/1/2 a,2,5,s
1/2/3 a,1,5,m
2/2/5 a,2,4,s
1/4/6 a,1,6,s
2/3/7 a,2,1,s
2/4/8 a,2,1,m
2/5/9 a,2,9,s
2/6/10 a,2,9,m
1/5/11 a,1,2,m
1/6/12 a,1,6,m'
EXEC -t, -k1,1 -k2,2n '-lglean,count,min="3,3n"'
OUTPUT - $'1/1/1 a,1,5,s\n2/1/2 a,2,5,s\n2/2/5 a,2,4,s\n2/3/7 a,2,1,s\n1/5/11 a,1,2,m'
EXEC -t, -k1,1 -k2,2n '-lglean,count,min="3,3n",min="4,4"'
OUTPUT - $'1/1/1 a,1,5,s
2/1/2 a,2,5,s
1/2/3 a,1,5,m
2/2/5 a,2,4,s
2/3/7 a,2,1,s
2/4/8 a,2,1,m
1/5/11 a,1,2,m'
EXEC -t, -k1,1 -k2,2n '-lglean,count,min:="3,3n",min:="4,4"'
EXEC -t, -k1,1 -k2,2n '-lglean,count,max="3,3n"'
OUTPUT - $'1/1/1 a,1,5,s\n2/1/2 a,2,5,s\n1/4/6 a,1,6,s\n2/5/9 a,2,9,s'
EXEC -t, -k1,1 -k2,2n '-lglean,count,max="3,3n",max="4,4r"'
OUTPUT - $'1/1/1 a,1,5,s
2/1/2 a,2,5,s
1/2/3 a,1,5,m
1/4/6 a,1,6,s
2/5/9 a,2,9,s
2/6/10 a,2,9,m
1/6/12 a,1,6,m'
EXEC -t, -k1,1 -k2,2n '-lglean,count,max:="3,3n",max:="4,4r"'
OUTPUT - $'1/1/1 a,1,5,s
2/1/2 a,2,5,s
1/2/3 a,1,5,m
1/4/6 a,1,6,s
2/4/8 a,2,1,m
2/5/9 a,2,9,s'
EXEC -t, -k1,1 -k2,2n '-lglean,count,min="3,3n",min="4,4",max="3,3n",max="4,4r"'
OUTPUT - $'1/1/1 a,1,5,s
2/1/2 a,2,5,s
1/2/3 a,1,5,m
2/2/5 a,2,4,s
1/4/6 a,1,6,s
2/3/7 a,2,1,s
2/4/8 a,2,1,m
2/5/9 a,2,9,s
2/6/10 a,2,9,m
1/5/11 a,1,2,m
1/6/12 a,1,6,m'
EXEC -t, -k1,1 -k2,2n '-lglean,count,min:="3,3n",min:="4,4",max="3,3n",max="4,4r"'
EXEC -t, -k1,1 -k2,2n '-lglean,count,min="3,3n",min="4,4",max:="3,3n",max:="4,4r"'
OUTPUT - $'1/1/1 a,1,5,s
2/1/2 a,2,5,s
1/2/3 a,1,5,m
2/2/5 a,2,4,s
1/4/6 a,1,6,s
2/3/7 a,2,1,s
2/4/8 a,2,1,m
2/5/9 a,2,9,s
1/5/11 a,1,2,m'
EXEC -t, -k1,1 -k2,2n '-lglean,count,min:="3,3n",min:="4,4",max:="3,3n",max:="4,4r"'
EXEC -t, '-lglean,min:="3,3n",min:="4,4",max:="3,3n",max:="4,4r"'
OUTPUT - $'a,1,5,s\na,1,5,m\na,2,4,s\na,1,6,s\na,2,1,s\na,2,9,s'
EXEC -t, '-lglean,count,min:="3,3n",min:="4,4",max:="3,3n",max:="4,4r"'
OUTPUT - $'1/1/1 a,1,5,s
1/3/3 a,1,5,m
1/5/5 a,2,4,s
1/6/6 a,1,6,s
1/7/7 a,2,1,s
1/9/9 a,2,9,s'
EXEC -t, '-lglean,absolute,min:="3,3n",min:="4,4",max:="3,3n",max:="4,4r"'
OUTPUT - $'a,1,5,m\na,2,9,s\na,1,5,m\na,2,1,s'
EXEC -t, '-lglean,absolute,count,min:="3,3n",min:="4,4",max:="3,3n",max:="4,4r"'
OUTPUT - $'1/3/3 a,1,5,m\n1/9/9 a,2,9,s\n1/3/3 a,1,5,m\n1/7/7 a,2,1,s'