1 AT_BANNER([VALUE LABELS])
3 AT_SETUP([VALUE LABELS date formats])
4 AT_DATA([value-labels.sps], [dnl
5 DATA LIST LIST NOTABLE /ad (adate10) dt (datetime20).
6 VALUE LABELS ad 'july 10, 1982' 'label 1'
9 /dt '12 Apr 2011 06:09:56' 'label 4'.
12 AT_CHECK([pspp -O format=csv value-labels.sps], [0], [dnl
13 Variable,Description,,Position
16 ,Display Alignment: Right,,
21 dt,Format: DATETIME20.0,,2
23 ,Display Alignment: Right,,
25 ,12-APR-2011 06:09:56,label 4,
29 dnl Tests for a bug which caused VALUE LABELS to
30 dnl crash when given invalid syntax.
31 AT_SETUP([VALUE LABELS invalid syntax bug])
32 AT_DATA([value-labels.sps], [dnl
33 DATA LIST LIST NOTABLE /a * pref * .
41 VALUE LABELS /var=a 'label for a'.
43 AT_CHECK([pspp -O format=csv value-labels.sps], [1], [dnl
44 value-labels.sps:9: error: VALUE LABELS: var is not a variable name.
48 # Tests for a bug which caused a crash if VALUE LABELS had a trailing /.
49 AT_SETUP([VALUE LABELS trailing `/' bug])
50 AT_DATA([value-labels.sps], [dnl
51 DATA LIST LIST NOTABLE /X * .
60 VALUE LABELS X 1 'one' 2 'two' 3 'three'/
65 AT_CHECK([pspp -O format=csv value-labels.sps], [0], [dnl