Change the order of the reported NPAR values in two sample related tests.
[pspp-builds.git] / tests / language / dictionary / vector.at
1 AT_BANNER([VECTOR])
2
3 AT_SETUP([VECTOR short form])
4 AT_DATA([vector.sps], [dnl
5 data list notable/x 1.
6 vector v(4).
7 display vector.
8 ])
9 AT_CHECK([pspp -o pspp.csv vector.sps])
10 AT_CHECK([cat pspp.csv], [0], [dnl
11 Vector,Position,Variable,Print Format
12 v,1,v1,F8.2
13 ,2,v2,F8.2
14 ,3,v3,F8.2
15 ,4,v4,F8.2
16 ])
17 AT_CLEANUP
18
19 AT_SETUP([VECTOR short form with format specification])
20 AT_DATA([vector.sps], [dnl
21 data list notable/x 1.
22 vector #vec(4, comma10.2).
23 display vector.
24 ])
25 AT_CHECK([pspp -o pspp.csv vector.sps])
26 AT_CHECK([cat pspp.csv], [0], [dnl
27 Vector,Position,Variable,Print Format
28 #vec,1,#vec1,COMMA10.2
29 ,2,#vec2,COMMA10.2
30 ,3,#vec3,COMMA10.2
31 ,4,#vec4,COMMA10.2
32 ])
33 AT_CLEANUP
34
35 AT_SETUP([VECTOR short form in INPUT PROGRAM])
36 AT_DATA([vector.sps], [dnl
37 input program.
38 vector x(5).
39 data list notable/x5 x2 x3 x1 x4 1-5.
40 end input program.
41 display vector.
42 ])
43 AT_CHECK([pspp -o pspp.csv vector.sps])
44 AT_CHECK([cat pspp.csv], [0], [dnl
45 Vector,Position,Variable,Print Format
46 x,1,x1,F8.2
47 ,2,x2,F8.2
48 ,3,x3,F8.2
49 ,4,x4,F8.2
50 ,5,x5,F8.2
51 ])
52 AT_CLEANUP
53
54 AT_SETUP([VECTOR long form])
55 AT_DATA([vector.sps], [dnl
56 data list notable/u w x y z 1-5.
57 vector a=u to y.
58 vector b=x to z.
59 vector c=all.
60 display vector.
61 ])
62 AT_CHECK([pspp -o pspp.csv vector.sps])
63 AT_CHECK([cat pspp.csv], [0], [dnl
64 Vector,Position,Variable,Print Format
65 a,1,u,F1.0
66 ,2,w,F1.0
67 ,3,x,F1.0
68 ,4,y,F1.0
69 b,1,x,F1.0
70 ,2,y,F1.0
71 ,3,z,F1.0
72 c,1,u,F1.0
73 ,2,w,F1.0
74 ,3,x,F1.0
75 ,4,y,F1.0
76 ,5,z,F1.0
77 ])
78 AT_CLEANUP