1dnl PSPP - a program for statistical analysis.
2dnl Copyright (C) 2017 Free Software Foundation, Inc.
3dnl
4dnl This program is free software: you can redistribute it and/or modify
5dnl it under the terms of the GNU General Public License as published by
6dnl the Free Software Foundation, either version 3 of the License, or
7dnl (at your option) any later version.
8dnl
9dnl This program is distributed in the hope that it will be useful,
10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12dnl GNU General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU General Public License
15dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
16dnl
17AT_BANNER([dictionary])
18
19AT_SETUP([dictionary case-insensitivity])
20AT_DATA([dictionary.sps], [dnl
21DATA LIST LIST /aèiöu aeiou.
22BEGIN DATA
231 2
24END DATA.
25LIST AÈIÖU
26RENAME VARIABLE (aèiöu=AÈIÖU).
27LIST.
28RENAME VARIABLE (aeiou=aèiöu).
29])
30
31AT_CHECK([pspp -O format=csv dictionary.sps],[1],
32[Table: Reading free-form data from INLINE.
33Variable,Format
34aèiöu,F8.0
35aeiou,F8.0
36
37Table: Data List
38aèiöu
391.00
40
41Table: Data List
42AÈIÖU,aeiou
431.00,2.00
44
45dictionary.sps:8: error: RENAME VARIABLES: Renaming would duplicate variable name aèiöu.
46])
47
48AT_CLEANUP
49