Add copyright and licence notices to files which lack them.
[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 AT_BANNER([TEMPORARY])
17
18 dnl Tests for a bug that manifested when all transformations are temporary.
19 AT_SETUP([TEMPORARY as first transformation])
20 AT_DATA([temporary.sps], [dnl
21 DATA LIST LIST NOTABLE /X *.
22 BEGIN DATA.
23 1
24 2
25 3
26 4
27 5
28 6
29 7
30 8
31 9
32 END DATA.
33
34 TEMPORARY.
35 SELECT IF x > 5 .
36 LIST.
37
38 LIST.
39 ])
40 AT_CHECK([pspp -o pspp.csv temporary.sps])
41 AT_CHECK([cat pspp.csv], [0], [dnl
42 Table: Data List
43 X
44 6.00
45 7.00
46 8.00
47 9.00
48
49 Table: Data List
50 X
51 1.00
52 2.00
53 3.00
54 4.00
55 5.00
56 6.00
57 7.00
58 8.00
59 9.00
60 ])
61 AT_CLEANUP