From: Ben Pfaff Date: Thu, 4 Aug 2022 23:11:52 +0000 (-0700) Subject: FORMAT=EMPTY X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=5a43e7454dabbeada81caff3e5b9f471bdc51296;p=pspp FORMAT=EMPTY --- diff --git a/tests/language/stats/ctables.at b/tests/language/stats/ctables.at index ef606146dc..cfa39ec3a3 100644 --- a/tests/language/stats/ctables.at +++ b/tests/language/stats/ctables.at @@ -17,7 +17,6 @@ dnl * THRU (numeric ranges) dnl * OTHERNM dnl - FORMAT: dnl * MINCOLWIDTH, MAXCOLWIDTH, UNITS. -dnl * EMPTY. dnl * MISSING. dnl - HIDESMALLCOUNTS. dnl - Date/time variables and values @@ -2178,3 +2177,80 @@ AT_CHECK([pspp ctables.sps -O box=unicode], [0], [dnl ]) AT_CLEANUP +AT_SETUP([CTABLES FORMAT=EMPTY]) +AT_KEYWORDS([FORMAT EMPTY]) +AT_CHECK([ln $top_srcdir/examples/nhtsa.sav . || cp $top_srcdir/examples/nhtsa.sav .]) +AT_DATA([ctables.sps], +[[GET 'nhtsa.sav'. +CTABLES /FORMAT EMPTY=ZERO /TABLE qnd5a BY qnd5. +CTABLES /FORMAT EMPTY=BLANK /TABLE qnd5a BY qnd5. +CTABLES /FORMAT EMPTY='n/a' /TABLE qnd5a BY qnd5. +]]) +AT_CHECK([pspp ctables.sps -O box=unicode], [0], [dnl + Custom Tables +╭─────────────────────────────────────────────┬───────────────────────────────╮ +│ │ D5. ETHNICITY: Are you of │ +│ │ Hispanic or Latino origin or │ +│ │ descent? │ +│ ├───────────────┬───────────────┤ +│ │ Yes │ No │ +│ ├───────────────┼───────────────┤ +│ │ Count │ Count │ +├─────────────────────────────────────────────┼───────────────┼───────────────┤ +│D5a. What would you say is Cuban │ 20│ 0│ +│your primary ethnic Mexican │ 311│ 0│ +│background? Spanish │ 48│ 0│ +│ South American │ 34│ 0│ +│ Central American│ 52│ 0│ +│ Puerto Rican, OR│ 78│ 0│ +│ Something else │ 68│ 0│ +│ Multiple - │ 7│ 0│ +│ cannot choose │ │ │ +│ one │ │ │ +╰─────────────────────────────────────────────┴───────────────┴───────────────╯ + + Custom Tables +╭─────────────────────────────────────────────┬───────────────────────────────╮ +│ │ D5. ETHNICITY: Are you of │ +│ │ Hispanic or Latino origin or │ +│ │ descent? │ +│ ├───────────────┬───────────────┤ +│ │ Yes │ No │ +│ ├───────────────┼───────────────┤ +│ │ Count │ Count │ +├─────────────────────────────────────────────┼───────────────┼───────────────┤ +│D5a. What would you say is Cuban │ 20│ │ +│your primary ethnic Mexican │ 311│ │ +│background? Spanish │ 48│ │ +│ South American │ 34│ │ +│ Central American│ 52│ │ +│ Puerto Rican, OR│ 78│ │ +│ Something else │ 68│ │ +│ Multiple - │ 7│ │ +│ cannot choose │ │ │ +│ one │ │ │ +╰─────────────────────────────────────────────┴───────────────┴───────────────╯ + + Custom Tables +╭─────────────────────────────────────────────┬───────────────────────────────╮ +│ │ D5. ETHNICITY: Are you of │ +│ │ Hispanic or Latino origin or │ +│ │ descent? │ +│ ├───────────────┬───────────────┤ +│ │ Yes │ No │ +│ ├───────────────┼───────────────┤ +│ │ Count │ Count │ +├─────────────────────────────────────────────┼───────────────┼───────────────┤ +│D5a. What would you say is Cuban │ 20│n/a │ +│your primary ethnic Mexican │ 311│n/a │ +│background? Spanish │ 48│n/a │ +│ South American │ 34│n/a │ +│ Central American│ 52│n/a │ +│ Puerto Rican, OR│ 78│n/a │ +│ Something else │ 68│n/a │ +│ Multiple - │ 7│n/a │ +│ cannot choose │ │ │ +│ one │ │ │ +╰─────────────────────────────────────────────┴───────────────┴───────────────╯ +]) +AT_CLEANUP \ No newline at end of file