X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Fautorecode.at;h=bd9d59f7c45dfaa2259e7abe15c2e0684b0728c5;hb=60a5a715819916ddc5df53451221436995a71356;hp=3b27aa833d8448e8dbc5628ec5a20c98ffb40194;hpb=376e94bdee77d28d5c3e5718bbc6b7cba3c0db5a;p=pspp-builds.git diff --git a/tests/language/stats/autorecode.at b/tests/language/stats/autorecode.at index 3b27aa83..bd9d59f7 100644 --- a/tests/language/stats/autorecode.at +++ b/tests/language/stats/autorecode.at @@ -176,3 +176,33 @@ a,b AT_CLEANUP + +dnl Tests for a crash which happened when the /GROUP subcommand +dnl appeared with string variables of different widths. +AT_SETUP([AUTORECODE group vs. strings]) +AT_DATA([ar-strings.sps], + [data list notable list /a (a12) b (a6). +begin data. +one nine +two ten +three eleven +four nought +end data. + +autorecode a b into x y + /group. + +list. +]) + +AT_CHECK([pspp -O format=csv ar-strings.sps], [0], +[dnl +Table: Data List +a,b,x,y +one ,nine ,5.00,3.00 +two ,ten ,8.00,6.00 +three ,eleven,7.00,1.00 +four ,nought,2.00,4.00 +]) + +AT_CLEANUP