X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fcrosstabs2.sh;h=964cf23c061d4bc29a30e897c67f5c75929cf8ee;hb=dfd1972f7bcb550a4fc3b05dbe7e71d12334b0a7;hp=3e6629985913517b6645e951c927e87968b99c20;hpb=c9a3c45e44c1c03d13d4eb186e3817bc836f75f8;p=pspp-builds.git diff --git a/tests/bugs/crosstabs2.sh b/tests/bugs/crosstabs2.sh index 3e662998..964cf23c 100755 --- a/tests/bugs/crosstabs2.sh +++ b/tests/bugs/crosstabs2.sh @@ -80,52 +80,32 @@ $SUPERVISOR $PSPP --testing-mode $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi -perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list -diff -b -w $TEMPDIR/pspp.list - << EOF -1.1 DATA LIST. Reading free-form data from INLINE. -+--------+------+ -|Variable|Format| -#========#======# -|x |F8.0 | -|y |F8.0 | -+--------+------+ -2.1 CROSSTABS. Summary. -#===============#=====================================================# -# # Cases # -# #-----------------+-----------------+-----------------# -# # Valid | Missing | Total # -# #--------+--------+--------+--------+--------+--------# -# # N| Percent| N| Percent| N| Percent# -#---------------#--------+--------+--------+--------+--------+--------# -#x * y # 4| 100.0%| 0| 0.0%| 4| 100.0%# -#===============#========#========#========#========#========#========# -2.2 CROSSTABS. x * y [count]. -#===============#=================#========# -# # y | # -# #--------+--------+ # -# x# 1.00| 2.00| Total # -#---------------#--------+--------+--------# -# 2.00# .0| 1.0| 1.0# -# 3.00# 1.0| .0| 1.0# -# 4.00# 1.0| 1.0| 2.0# -#Total # 2.0| 2.0| 4.0# -#===============#========#========#========# -2.3 CROSSTABS. Chi-square tests. -#===============#========#========#========# -#Statistic # Value| df| Asymp.# -# # | | Sig.# -# # | |(2-sided# -# # | | )# -#---------------#--------+--------+--------# -#Pearson # 2.00| 2| .37# -#Chi-Square # | | # -#Likelihood # 2.77| 2| .25# -#Ratio # | | # -#Linear-by-Linea# .27| 1| .60# -#r Association # | | # -#N of Valid # 4| | # -#Cases # | | # -#===============#========#========#========# +diff -c $TEMPDIR/pspp.csv - << EOF +Table: Reading free-form data from INLINE. +Variable,Format +x,F8.0 +y,F8.0 + +Table: Summary. +,Cases,,,,, +,Valid,,Missing,,Total, +,N,Percent,N,Percent,N,Percent +x * y,4,100.0%,0,0.0%,4,100.0% + +Table: x * y [count]. +,y,, +x,1.00,2.00,Total +2.00,.0,1.0,1.0 +3.00,1.0,.0,1.0 +4.00,1.0,1.0,2.0 +Total,2.0,2.0,4.0 + +Table: Chi-square tests. +Statistic,Value,df,Asymp. Sig. (2-sided) +Pearson Chi-Square,2.00,2,.37 +Likelihood Ratio,2.77,2,.25 +Linear-by-Linear Association,.27,1,.60 +N of Valid Cases,4,, EOF if [ $? -ne 0 ] ; then fail ; fi