X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Fctables.at;h=725731c7db127848734b8ed50ccb4efcb4654af2;hb=refs%2Fheads%2Fctables16;hp=6885f935ea199280b13ffcedea287e6a3121d8d3;hpb=981adc6169ffe7227de286f92f70edf684d37a2b;p=pspp diff --git a/tests/language/stats/ctables.at b/tests/language/stats/ctables.at index 6885f935ea..725731c7db 100644 --- a/tests/language/stats/ctables.at +++ b/tests/language/stats/ctables.at @@ -1,5 +1,41 @@ AT_BANNER([CTABLES]) +dnl Known bugs: +dnl TOTAL interaction with PCOMPUTE, e.g. the following +dnl CTABLES +dnl /PCOMPUTE &all_drivers=EXPR([1 THRU 2] + [3 THRU 4]) +dnl /PPROPERTIES &all_drivers LABEL='All Drivers' +dnl /PCOMPUTE &pct_not_drivers=EXPR([5] / ([1 THRU 2] + [3 THRU 4] + [5]) * 100) +dnl /PPROPERTIES &pct_not_drivers LABEL='% Not Drivers' FORMAT=COUNT PCT40.1 +dnl /TABLE=qn1 BY qns3a +dnl /CATEGORIES VARIABLES=qns3a TOTAL=YES +dnl /CATEGORIES VARIABLES=qn1 [1 THRU 2, SUBTOTAL='Frequent Drivers', +dnl 3 THRU 4, SUBTOTAL='Infrequent Drivers', +dnl &all_drivers, 5, &pct_not_drivers, +dnl MISSING, SUBTOTAL='Not Drivers or Missing']. +dnl yields gaps in the Total column: +dnl ╭─────────────────────────────────────────────────────────────────────────┬──────────────────╮ +dnl │ │ S3a. GENDER: │ +dnl │ ├─────┬──────┬─────┤ +dnl │ │ Male│Female│Total│ +dnl │ ├─────┼──────┼─────┤ +dnl │ │Count│ Count│Count│ +dnl ├─────────────────────────────────────────────────────────────────────────┼─────┼──────┼─────┤ +dnl │ 1. How often do you usually drive a car or other Every day │ 2305│ 2362│ 4667│ +dnl │motor vehicle? Several days a week │ 440│ 834│ 1274│ +dnl │ Frequent Drivers │ 2745│ 3196│ │ +dnl │ Once a week or less │ 125│ 236│ 361│ +dnl │ Only certain times a │ 58│ 72│ 130│ +dnl │ year │ │ │ │ +dnl │ Infrequent Drivers │ 183│ 308│ │ +dnl │ All Drivers │ 2928│ 3504│ │ +dnl │ Never │ 192│ 348│ 540│ +dnl │ % Not Drivers │ 6.2%│ 9.0%│ │ +dnl │ Don't know │ 3│ 5│ 8│ +dnl │ Refused │ 9│ 10│ 19│ +dnl │ Not Drivers or │ 204│ 363│ │ +dnl │ Missing │ │ │ │ +dnl ╰─────────────────────────────────────────────────────────────────────────┴─────┴──────┴─────╯ dnl Features not yet implemented: dnl - Multiple response sets dnl - MRSETS subcommand. @@ -535,6 +571,8 @@ CTABLES /TABLE qn113 /SIGTEST TYPE=CHISQUARE. CTABLES /TABLE qn113 /COMPARETEST TYPE=PROP. CTABLES /TABLE qn113 [COUNT.UCL]. + +CTABLES /TABLE qn1 /CATEGORIES **. ]]) AT_CHECK([pspp ctables.sps -O box=unicode -O width=80], [1], [[ctables.sps:2.76-2.78: error: CTABLES: Computed category &pc references a @@ -666,6 +704,9 @@ for COMPARETEST not yet implemented. ctables.sps:32.23-32.31: error: CTABLES: Syntax error at `COUNT.UCL': Support for LCL, UCL, and SE summary functions is not yet implemented. + +ctables.sps:34.32-34.33: error: CTABLES: Syntax error at `**': expecting +VARIABLES. ]]) AT_CLEANUP