add errors for unimplemented features
[pspp] / tests / language / stats / ctables.at
index 40be19464b1bbb85951a333b4b637f6e1a2bf02e..6885f935ea199280b13ffcedea287e6a3121d8d3 100644 (file)
@@ -1,11 +1,6 @@
 AT_BANNER([CTABLES])
 
-dnl Features not yet tested:
-dnl - Summary functions:
-dnl   * WEIGHT and adjustment weights.
-dnl   * details of missing value handling in summaries.
-dnl
-dnl Not for v1:
+dnl Features not yet implemented:
 dnl - Multiple response sets
 dnl - MRSETS subcommand.
 dnl - CATEGORIES: Special case for explicit category specifications and multiple dichotomy sets.
@@ -14,8 +9,6 @@ dnl - COMPARETEST
 dnl - Summary functions:
 dnl   * .LCL and .UCL suffixes.
 dnl   * .SE suffixes.
-dnl - Summary functions:
-dnl   * )CILEVEL in summary label specification
 dnl - CATEGORIES:
 dnl   * Data-dependent sorting.
 
@@ -533,6 +526,15 @@ CTABLES /PCOMPUTE &x=EXPR(**).
 CTABLES /TABLE.
 
 CTABLES /TABLE qn113 [COUNT] BY qn114 [COUNT] BY qn116 [COUNT]. 
+
+CTABLES /TABLE qn1 /CATEGORIES VARIABLES=qn1 KEY=PTILE(qn1, 50).
+
+CTABLES /TABLE $mrset.
+
+CTABLES /TABLE qn113 /SIGTEST TYPE=CHISQUARE.
+CTABLES /TABLE qn113 /COMPARETEST TYPE=PROP.
+
+CTABLES /TABLE qn113 [COUNT.UCL].
 ]])
 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
@@ -595,8 +597,8 @@ variable string.
     8 | CTABLES /TABLE string /CATEGORIES VARIABLES=string [1].
       |                                                     ^
 
-ctables.sps:10: error: CTABLES: ROWLABELS=OPPOSITE is not allowed with sorting
-based on a summary function.
+ctables.sps:10.74-10.86: error: CTABLES: Syntax error at `KEY=MEAN(qn1)': Data-
+dependent sorting is not implemented.
 
 ctables.sps:12: error: CTABLES: ROWLABELS=OPPOSITE requires the variables to be
 moved to be categorical, but qnd1 is a scale variable.
@@ -649,6 +651,21 @@ ctables.sps:23.33-23.37: note: CTABLES: This is a scale variable, so it always
 has a summary even if the syntax does not explicitly specify one.
    23 | CTABLES /TABLE qn113 [COUNT] BY qn114 [COUNT] BY qn116 [COUNT].
       |                                 ^~~~~
+
+ctables.sps:25.46-25.63: error: CTABLES: Syntax error at `KEY=PTILE(qn1, 50)':
+Data-dependent sorting is not implemented.
+
+ctables.sps:27.16-27.21: error: CTABLES: Syntax error at `$mrset': Multiple
+response set support not implemented.
+
+ctables.sps:29.23-29.44: error: CTABLES: Syntax error at `SIGTEST
+TYPE=CHISQUARE': Support for SIGTEST not yet implemented.
+
+ctables.sps:30.35-30.43: error: CTABLES: Syntax error at `TYPE=PROP': Support
+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.
 ]])
 AT_CLEANUP
 
@@ -5051,29 +5068,29 @@ AT_CHECK([pspp ctables.sps -O box=unicode -O width=120], [0], [dnl
 │  Layer Row Sum %  │  13.3%│ 10.3%│ 11.3%│  8.9%│  12.6%│ 11.5%│  9.8%│  9.9%│  12.4%│
 ╰───────────────────┴───────┴──────┴──────┴──────┴───────┴──────┴──────┴──────┴───────╯
 
-                                        Custom Tables
-╭────────────────────────────┬──────────────────────────────────────────────────────────────╮
-│                            │                               a                              │
-│                            ├────────────────────┬────────────────────┬────────────────────┤
-│                            │          1         │          2         │          9         │
-│                            ├────────────────────┼────────────────────┼────────────────────┤
-│                            │          b         │          b         │          b         │
-│                            ├──────┬──────┬──────┼──────┬──────┬──────┼──────┬──────┬──────┤
-│                            │   3  │   4  │   9  │   3  │   4  │   9  │   3  │   4  │   9  │
-├────────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
-│c Valid N                   │     7│     6│     8│     7│     7│     8│     7│     7│     8│
-│  Missing                   │     3│     4│     2│     3│     3│     2│     3│     3│     2│
-│  Unweighted Mean           │ 25.86│ 24.50│ 24.63│ 25.86│ 25.71│ 24.25│ 25.43│ 25.29│ 23.88│
-│  Std Error of Mean         │  2.44│  2.14│  2.58│  2.44│  2.18│  2.43│  2.36│  2.18│  2.47│
-│  Median                    │ 25.00│ 24.50│ 25.00│ 25.00│ 27.00│ 25.00│ 25.00│ 24.00│ 23.50│
-│  Mode                      │    16│    18│    15│    16│    18│    15│    16│    18│    15│
-│  Std Deviation             │  6.47│  5.24│  7.31│  6.47│  5.77│  6.88│  6.24│  5.77│  6.98│
-│  Variance                  │ 41.81│ 27.50│ 53.41│ 41.81│ 33.24│ 47.36│ 38.95│ 33.24│ 48.70│
-│  Sum                       │181.00│147.00│197.00│181.00│180.00│194.00│178.00│177.00│191.00│
-│  Unweighted Count          │    10│    10│    10│    10│    10│    10│    10│    10│    10│
-│  Total N                   │    10│    10│    10│    10│    10│    10│    10│    10│    10│
-│  Unweighted Layer Row Sum %│ 11.1%│  9.0%│ 12.1%│ 11.1%│ 11.1%│ 11.9%│ 10.9%│ 10.9%│ 11.7%│
-╰────────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────╯
+                                         Custom Tables
\95­â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¬â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\95®
+│                              │                               a                              │
+│                              ├────────────────────┬────────────────────┬────────────────────┤
+│                              │          1         │          2         │          9         │
+│                              ├────────────────────┼────────────────────┼────────────────────┤
+│                              │          b         │          b         │          b         │
+│                              ├──────┬──────┬──────┼──────┬──────┬──────┼──────┬──────┬──────┤
+│                              │   3  │   4  │   9  │   3  │   4  │   9  │   3  │   4  │   9  │
\94\9câ\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¼â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94¤
+│c Unweighted Valid N          │     7│     6│     8│     7│     7│     8│     7│     7│     8│
+│  Unweighted Missing          │     3│     4│     2│     3│     3│     2│     3│     3│     2│
+│  Unweighted Mean             │ 25.86│ 24.50│ 24.63│ 25.86│ 25.71│ 24.25│ 25.43│ 25.29│ 23.88│
+│  Unweighted Std Error of Mean│  2.44│  2.14│  2.58│  2.44│  2.18│  2.43│  2.36│  2.18│  2.47│
+│  Unweighted Median           │ 25.00│ 24.50│ 25.00│ 25.00│ 27.00│ 25.00│ 25.00│ 24.00│ 23.50│
+│  Unweighted Mode             │    16│    18│    15│    16│    18│    15│    16│    18│    15│
+│  Unweighted Std Deviation    │  6.47│  5.24│  7.31│  6.47│  5.77│  6.88│  6.24│  5.77│  6.98│
+│  Unweighted Variance         │ 41.81│ 27.50│ 53.41│ 41.81│ 33.24│ 47.36│ 38.95│ 33.24│ 48.70│
+│  Unweighted Sum              │181.00│147.00│197.00│181.00│180.00│194.00│178.00│177.00│191.00│
+│  Unweighted Count            │    10│    10│    10│    10│    10│    10│    10│    10│    10│
+│  Unweighted Total N          │    10│    10│    10│    10│    10│    10│    10│    10│    10│
+│  Unweighted Layer Row Sum %  │ 11.1%│  9.0%│ 12.1%│ 11.1%│ 11.1%│ 11.9%│ 10.9%│ 10.9%│ 11.7%│
\95°â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\94´â\94\80â\94\80â\94\80â\94\80â\94\80â\94\80â\95¯
 ])
 AT_CLEANUP