X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fdata-io%2Flist.at;h=bc44cd592a86b76e9a95c75b9f0c8296107c476c;hb=d86cce86d3f0ac665de30543d18aea23653d3f94;hp=10bb52e92a6176027e7ca7cc08a808acb6308109;hpb=55c55aa33d0f90d1b3b58f8b33b3fc54062c553e;p=pspp diff --git a/tests/language/data-io/list.at b/tests/language/data-io/list.at index 10bb52e92a..bc44cd592a 100644 --- a/tests/language/data-io/list.at +++ b/tests/language/data-io/list.at @@ -1,3 +1,19 @@ +dnl PSPP - a program for statistical analysis. +dnl Copyright (C) 2017 Free Software Foundation, Inc. +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . +dnl AT_BANNER([LIST]) AT_SETUP([LIST plain cases]) @@ -102,8 +118,9 @@ LIST n. ]) AT_CHECK([pspp -o pspp.csv list.sps]) AT_CHECK([cat pspp.csv], [0], [dnl -Variable,Value,Label -s,a, +Table: Split Values +Variable,Value +s,a Table: Data List n @@ -111,15 +128,17 @@ n 2.00 3.00 -Variable,Value,Label -s,b, +Table: Split Values +Variable,Value +s,b Table: Data List n 1.00 -Variable,Value,Label -s,c, +Table: Split Values +Variable,Value +s,c Table: Data List n @@ -239,8 +258,9 @@ LIST. ]) AT_CHECK([pspp -o pspp.csv list.sps]) AT_CHECK([cat pspp.csv], [0], [dnl -Variable,Description,Position -foo,Format: A2000,1 +Table: Variables +Name,Position,Print Format,Write Format,Missing Values +foo,1,A2000,A2000, Table: Data List foo @@ -266,3 +286,34 @@ LIST. AT_CHECK([pspp -o pspp.csv list.sps], [1], [ignore]) AT_CLEANUP + +dnl This is an example from doc/tutorial.texi +dnl So if the results of this have to be changed in any way, +dnl make sure to update that file. +AT_SETUP([LIST tutorial example]) +AT_DATA([list.sps], [dnl +data list list /forename (A12) height. +begin data. +Ahmed 188 +Bertram 167 +Catherine 134.231 +David 109.1 +end data + +list /format=numbered. +]) +AT_CHECK([pspp -o pspp.csv -o pspp.txt list.sps]) +AT_CHECK([cat pspp.csv], [0], [dnl +Table: Reading free-form data from INLINE. +Variable,Format +forename,A12 +height,F8.0 + +Table: Data List +Case Number,forename,height +1,Ahmed,188.00 +2,Bertram,167.00 +3,Catherine,134.23 +4,David,109.10 +]) +AT_CLEANUP