1 AT_BANNER([variable display attributes])
3 AT_SETUP([variable display attribute commands])
4 AT_DATA([var-display.sps], [dnl
6 VARIABLE ALIGNMENT x (LEFT)/y (RIGHT)/z (CENTER).
7 VARIABLE WIDTH x (10)/y (12)/z (14).
8 VARIABLE LEVEL x (SCALE)/y (ORDINAL)/z (NOMINAL).
9 VARIABLE ROLE /TARGET x /BOTH y /NONE z.
12 AT_CHECK([pspp -o pspp.csv var-display.sps])
13 AT_CHECK([cat pspp.csv], [0], [dnl
14 Variable,Description,,Position
18 ,Display Alignment: Left,,
23 ,Display Alignment: Right,,
28 ,Display Alignment: Center,,
34 AT_BANNER([VARIABLE LABELS])
36 AT_SETUP([variable labels])
38 dnl The following test is to make sure the TVARS command works and that
39 dnl variables are displayed accordingly.
40 AT_DATA([var-labels.sps], [dnl
41 DATA LIST LIST NOTABLE /x * y *.
49 * While no labels have been set, the TVARS is irrelevant.
59 VARIABLE LABEL x 'foo' y 'bar'.
61 * Now, the TVARS setting should have effect
73 AT_CHECK([pspp -O format=csv var-labels.sps], [0],[dnl
74 Table: Valid cases = 4; cases with missing value(s) = 0.
75 Variable,N,Mean,Std Dev,Minimum,Maximum
76 x,4,2.50,1.29,1.00,4.00
77 y,4,250.00,129.10,100.00,400.00
79 Table: Valid cases = 4; cases with missing value(s) = 0.
80 Variable,N,Mean,Std Dev,Minimum,Maximum
81 x,4,2.50,1.29,1.00,4.00
82 y,4,250.00,129.10,100.00,400.00
84 Table: Valid cases = 4; cases with missing value(s) = 0.
85 Variable,N,Mean,Std Dev,Minimum,Maximum
86 x,4,2.50,1.29,1.00,4.00
87 y,4,250.00,129.10,100.00,400.00
89 Table: Valid cases = 4; cases with missing value(s) = 0.
90 Variable,N,Mean,Std Dev,Minimum,Maximum
91 x,4,2.50,1.29,1.00,4.00
92 y,4,250.00,129.10,100.00,400.00
94 Table: Valid cases = 4; cases with missing value(s) = 0.
95 Variable,N,Mean,Std Dev,Minimum,Maximum
96 foo,4,2.50,1.29,1.00,4.00
97 bar,4,250.00,129.10,100.00,400.00
99 Table: Valid cases = 4; cases with missing value(s) = 0.
100 Variable,N,Mean,Std Dev,Minimum,Maximum
101 foo (x),4,2.50,1.29,1.00,4.00
102 bar (y),4,250.00,129.10,100.00,400.00