Fix erroneous subsitute by previous commit.
[pspp] / tests / language / control / temporary.at
1 dnl PSPP - a program for statistical analysis.
2 dnl Copyright (C) 2017 Free Software Foundation, Inc.
3 dnl 
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.
8 dnl 
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.
13 dnl 
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/>.
16 dnl
17 AT_BANNER([TEMPORARY])
18
19 dnl Tests for a bug that manifested when all transformations are temporary.
20 AT_SETUP([TEMPORARY as first transformation])
21 AT_DATA([temporary.sps], [dnl
22 DATA LIST LIST NOTABLE /X *.
23 BEGIN DATA.
24 1
25 2
26 3
27 4
28 5
29 6
30 7
31 8
32 9
33 END DATA.
34
35 TEMPORARY.
36 SELECT IF x > 5 .
37 LIST.
38
39 LIST.
40 ])
41 AT_CHECK([pspp -o pspp.csv temporary.sps])
42 AT_CHECK([cat pspp.csv], [0], [dnl
43 Table: Data List
44 X
45 6.00
46 7.00
47 8.00
48 9.00
49
50 Table: Data List
51 X
52 1.00
53 2.00
54 3.00
55 4.00
56 5.00
57 6.00
58 7.00
59 8.00
60 9.00
61 ])
62 AT_CLEANUP