X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=tests%2Flanguage%2Fstats%2Fcorrelations.at;h=1de7eed195f11c4a8ff2291f3dbd9e311c60e655;hb=5440f8c4520e5df405c3377e20aa27b63d49abc4;hp=24fb63c6a69c975215a3c721323cb5bf2da51301;hpb=0df9cdd3df66caf4353128feff3008289cda8115;p=pspp diff --git a/tests/language/stats/correlations.at b/tests/language/stats/correlations.at index 24fb63c6a6..1de7eed195 100644 --- a/tests/language/stats/correlations.at +++ b/tests/language/stats/correlations.at @@ -348,3 +348,41 @@ var5,Pearson Correlation,-.0519,-.0407 ]) AT_CLEANUP + + +dnl Crash found by zzuf +AT_SETUP([CORRELATIONS -- empty dataset]) + +AT_DATA([correlations.sps], [dnl +data list list /a b c q g *. +CORRELATIONS 'VARIABLES = a b.] +) + +AT_CHECK([pspp -o pspp.csv correlations.sps], [1], [ignore]) + +AT_CLEANUP + +dnl Another Crash found by zzuf +AT_SETUP([CORRELATIONS -- empty dataset 2]) + +AT_DATA([correlations.sps], [dnl +data list notable list /foo * bar * wiz bang *. +begin data. + 1 00 3 . + 3 9 -50 . +98 78 104 . + . 4 4 . + 5 3 0 . +end data. + +correlations + variables = foo bar wiz bang + /missing = listwise + . +]) + +AT_CHECK([pspp -O format=csv correlations.sps], [1], [dnl +correlations.sps:13: error: CORRELATIONS: The data for the chosen variables are all missing or empty. +]) + +AT_CLEANUP