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).
11 AT_CHECK([pspp -o pspp.csv var-display.sps])
12 AT_CHECK([cat pspp.csv], [0], [dnl
13 Variable,Description,,Position
16 ,Display Alignment: Left,,
20 ,Display Alignment: Right,,
24 ,Display Alignment: Center,,
30 AT_BANNER([VARIABLE LABELS])
32 AT_SETUP([variable labels])
34 dnl The following test is to make sure the TVARS command works and that
35 dnl variables are displayed accordingly.
36 AT_DATA([var-labels.sps], [dnl
37 DATA LIST LIST NOTABLE /x * y *.
45 * While no labels have been set, the TVARS is irrelevant.
55 VARIABLE LABEL x 'foo' y 'bar'.
57 * Now, the TVARS setting should have effect
69 AT_CHECK([pspp -O format=csv var-labels.sps], [0],[dnl
70 Table: Valid cases = 4; cases with missing value(s) = 0.
71 Variable,N,Mean,Std Dev,Minimum,Maximum
72 x,4,2.50,1.29,1.00,4.00
73 y,4,250.00,129.10,100.00,400.00
75 Table: Valid cases = 4; cases with missing value(s) = 0.
76 Variable,N,Mean,Std Dev,Minimum,Maximum
77 x,4,2.50,1.29,1.00,4.00
78 y,4,250.00,129.10,100.00,400.00
80 Table: Valid cases = 4; cases with missing value(s) = 0.
81 Variable,N,Mean,Std Dev,Minimum,Maximum
82 x,4,2.50,1.29,1.00,4.00
83 y,4,250.00,129.10,100.00,400.00
85 Table: Valid cases = 4; cases with missing value(s) = 0.
86 Variable,N,Mean,Std Dev,Minimum,Maximum
87 x,4,2.50,1.29,1.00,4.00
88 y,4,250.00,129.10,100.00,400.00
90 Table: Valid cases = 4; cases with missing value(s) = 0.
91 Variable,N,Mean,Std Dev,Minimum,Maximum
92 foo,4,2.50,1.29,1.00,4.00
93 bar,4,250.00,129.10,100.00,400.00
95 Table: Valid cases = 4; cases with missing value(s) = 0.
96 Variable,N,Mean,Std Dev,Minimum,Maximum
97 foo (x),4,2.50,1.29,1.00,4.00
98 bar (y),4,250.00,129.10,100.00,400.00