X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Ffrequencies.at;h=a2545b0f4c47ac2897bb33f422c677bc7d64dcf7;hb=5748d685acc79667804acc7a1a5a09f0f6db47a8;hp=1313f8509327159ed27bd26510c6dcfcc6c611c6;hpb=8925b93f70213a7b88521ea134d0c7daf18bb1a5;p=pspp diff --git a/tests/language/stats/frequencies.at b/tests/language/stats/frequencies.at index 1313f85093..a2545b0f4c 100644 --- a/tests/language/stats/frequencies.at +++ b/tests/language/stats/frequencies.at @@ -141,6 +141,36 @@ Reading free-form data from INLINE. ]) AT_CLEANUP +dnl Check that histogram subcommand runs wihout crashing +AT_SETUP([FREQUENCIES histogram crash]) +AT_DATA([frequencies.sps], + [data list notable list /x * w *. +begin data. +1 4 +34 10 +-9 15 +232 6 +11 4 +134 1 +9 5 +32 16 +-2 6 +2 16 +20 6 +end data. + +weight by w. + +frequencies /x + /format=notable + /statistics=none + /histogram=minimum(0) maximum(50) percent(5) normal. +]) +# Cannot use the CSV driver for this because it does not output charts +# at all. +AT_CHECK([pspp -O format=pdf frequencies.sps], [0], [ignore]) +AT_CLEANUP + # Tests for a bug which crashed PSPP when the median and a histogram # were both requested. AT_SETUP([FREQUENCIES median with histogram crash])