1 dnl PSPP - a program for statistical analysis.
2 dnl Copyright (C) 2017 Free Software Foundation, Inc.
4 dnl This program is free software: you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation, either version 3 of the License, or
7 dnl (at your option) any later version.
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
17 AT_BANNER([FLIP command])
19 AT_SETUP([FLIP with NEWNAMES])
20 AT_DATA([flip.sps], [dnl
21 data list notable /N 1 (a) a b c d 2-9.
37 AT_CHECK([pspp -O format=csv flip.sps], [0], [dnl
46 flip.sps:12: warning: FLIP: FLIP ignores TEMPORARY. Temporary transformations will be made permanent.
50 a ,1.00,6.00,11.00,16.00,21.00
51 b ,2.00,7.00,12.00,17.00,22.00
52 c ,3.00,8.00,13.00,18.00,23.00
53 d ,4.00,9.00,14.00,19.00,24.00
54 e ,1.00,6.00,11.00,16.00,21.00
58 v ,1.00,2.00,3.00,4.00,1.00
59 w ,6.00,7.00,8.00,9.00,6.00
60 x ,11.00,12.00,13.00,14.00,11.00
61 y ,16.00,17.00,18.00,19.00,16.00
62 z ,21.00,22.00,23.00,24.00,21.00
66 AT_SETUP([FLIP without NEWNAMES])
67 AT_DATA([flip.sps], [dnl
68 data list list notable /v1 to v10.
72 4 5 6 7 8 9 10 11 12 13
80 AT_CHECK([pspp -O format=csv flip.sps], [0], [dnl
82 v1,v2,v3,v4,v5,v6,v7,v8,v9,v10
84 4,5,6,7,8,9,10,11,12,13
87 CASE_LBL,VAR000,VAR001
104 AT_SETUP([FLIP badly formed])
106 AT_DATA([flip.sps], [dnl
107 data list notable /N 1 (a) a b c d 2-9.
114 AT_CHECK([pspp -O format=csv flip.sps], [1], [ignore])
120 AT_SETUP([FLIP with invalid variable names])
122 AT_DATA([flip.sps], [dnl
123 data list notable list /N (a3) a b c d *.
134 AT_CHECK([pspp -O format=csv flip.sps], [0], [dnl