X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Flanguage%2Fstats%2Fautorecode.at;h=52c56a8582ae2336bf9618cc14b116bc48d3be7c;hb=eff2701d5d282bfc0c1b52bd2af985705b11b307;hp=19dc0fcb734e17335eba34047962ee3d69bad325;hpb=3b9dfd387fdcbf5c2eb3c1a578990b58f4157ea5;p=pspp diff --git a/tests/language/stats/autorecode.at b/tests/language/stats/autorecode.at index 19dc0fcb73..52c56a8582 100644 --- a/tests/language/stats/autorecode.at +++ b/tests/language/stats/autorecode.at @@ -87,23 +87,16 @@ oojars ,5.00,1.00 thingummies ,6.00,3.00 oojimiflips ,7.00,2.00 -Variable,Description,,Position -s,Format: A16,,1 -,Measure: Nominal,, -,Display Alignment: Left,, -,Display Width: 16,, -x,Format: F8.2,,2 -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -new,Format: F8.2,,3 -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -,1.00,oojars, -,2.00,oojimiflips, -,3.00,thingummies, -,4.00,widgets, +Variable,Description,Position +s,Format: A16,1 +x,Format: F8.2,2 +new,"Format: F8.2 + +Value,Label +1.00,oojars +2.00,oojimiflips +3.00,thingummies +4.00,widgets",3 ]) AT_CLEANUP @@ -279,3 +272,36 @@ asdfk,0,2.00,. @&t@ asdfk,1,2.00,. @&t@ ]) AT_CLEANUP + + +dnl For compatibility, make sure that /INTO (with leading slash) is accepted +dnl (bug #48762) +AT_SETUP([AUTORECODE with /INTO]) +AT_DATA([autorecode.sps], + [data list list notable /x . +begin data. +1 +8 +-901 +4 +1 +99 +8 +end data. + +autorecode x /into y. + +list. +]) +AT_CHECK([pspp -O format=csv autorecode.sps], [0], +[Table: Data List +x,y +1.00,2.00 +8.00,4.00 +-901.00,1.00 +4.00,3.00 +1.00,2.00 +99.00,5.00 +8.00,4.00 +]) +AT_CLEANUP