X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Frank.at;h=2b909b9e54ac5c5f87aac2dd173efa39c9f7ae94;hb=43ec93cfe90172f186b71bfc229b34a981f5b128;hp=45ca41aea016a0d30c050fda87327d46a3d1b2b3;hpb=ff5e81803b409939e921211f1ffd46cb24df33e9;p=pspp diff --git a/tests/language/stats/rank.at b/tests/language/stats/rank.at index 45ca41aea0..2b909b9e54 100644 --- a/tests/language/stats/rank.at +++ b/tests/language/stats/rank.at @@ -37,6 +37,40 @@ x,Rx ]) AT_CLEANUP +# This checks for regression against a crash reported as bug #38482 +# that occurred when multiple variables were specified without any +# rank specifications. +AT_SETUP([RANK multiple variables with defaults]) +AT_DATA([rank.sps], [dnl +DATA LIST LIST NOTABLE /x * y * z *. +BEGIN DATA. + 1.00 2.00 3.00 + 4.00 5.00 6.00 +END DATA. + +RANK ALL. + +LIST. +]) +AT_CHECK([pspp -o pspp.csv rank.sps]) +AT_CHECK([cat pspp.csv], [0], [dnl +Variables Created By RANK + + + +x into Rx(RANK of x) + +y into Ry(RANK of y) + +z into Rz(RANK of z) + +Table: Data List +x,y,z,Rx,Ry,Rz +1.00,2.00,3.00,1.000,1.000,1.000 +4.00,5.00,6.00,2.000,2.000,2.000 +]) +AT_CLEANUP + AT_SETUP([RANK with RANK, RFRACTION, N]) AT_DATA([rank.sps], [dnl DATA LIST LIST NOTABLE /a * b *. @@ -83,45 +117,21 @@ a into count(N of a) b into Nb(N of b) -Variable,Description,,Position -a,Format: F8.2,,1 -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -b,Format: F8.2,,2 -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -Ra,RANK of a,,3 -,Format: F9.3,, -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -RFR001,RFRACTION of a,,4 -,Format: F6.4,, -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -count,N of a,,5 -,Format: F6.0,, -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -Rb,RANK of b,,6 -,Format: F9.3,, -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -RFR002,RFRACTION of b,,7 -,Format: F6.4,, -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -Nb,N of b,,8 -,Format: F6.0,, -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, +Variable,Description,Position +a,Format: F8.2,1 +b,Format: F8.2,2 +Ra,"Label: RANK of a +Format: F9.3",3 +RFR001,"Label: RFRACTION of a +Format: F6.4",4 +count,"Label: N of a +Format: F6.0",5 +Rb,"Label: RANK of b +Format: F9.3",6 +RFR002,"Label: RFRACTION of b +Format: F6.4",7 +Nb,"Label: N of b +Format: F6.0",8 Table: Data List a,b,Ra,RFR001,count,Rb,RFR002,Nb @@ -496,24 +506,12 @@ Variables Created By RANK foo into RAN001(RANK of foo) -Variable,Description,,Position -foo,Format: F8.2,,1 -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -rfoo,Format: F8.2,,2 -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -ran003,Format: F8.2,,3 -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, -RAN001,RANK of foo,,4 -,Format: F9.3,, -,Measure: Scale,, -,Display Alignment: Right,, -,Display Width: 8,, +Variable,Description,Position +foo,Format: F8.2,1 +rfoo,Format: F8.2,2 +ran003,Format: F8.2,3 +RAN001,"Label: RANK of foo +Format: F9.3",4 ]) AT_CLEANUP