X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fdata%2Fpc%2B-file-reader.at;h=9d4357b146c7abdf623fdc5c761e2db6354c680a;hb=0200682d517fd4b7cfc4e333378de03bcf74be43;hp=44de36a7b00c161e803a2521d35cccfb2cdfc70c;hpb=c70c924972443e3ec2713e421815cbf959af2582;p=pspp diff --git a/tests/data/pc+-file-reader.at b/tests/data/pc+-file-reader.at index 44de36a7b0..9d4357b146 100644 --- a/tests/data/pc+-file-reader.at +++ b/tests/data/pc+-file-reader.at @@ -1,16 +1,16 @@ dnl PSPP - a program for statistical analysis. dnl Copyright (C) 2017 Free Software Foundation, Inc. -dnl +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 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 dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see . dnl @@ -105,7 +105,8 @@ LIST. ]) AT_CHECK([pspp -o pspp.csv pc+-file.sps]) AT_CHECK([cat pspp.csv], [0], [dnl -File label: PSPP synthetic test file +Table: File Label +Label,PSPP synthetic test file Table: Variables Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values @@ -122,7 +123,7 @@ STR6,10,Another string variable's label,Nominal,Input,11,Left,A11,A11, Table: Data List NUM1,NUM2,NUM3,NUM4,STR1,STR2,STR3,STR4,STR5,STR6 -0,1,2,.,abcdefgh,ijkl,mnopq,r,stuvwxyzAB ,CDEFGHIJKLM +0,1,2,.,abcdefgh,ijkl,mnopq,r,stuvwxyzAB,CDEFGHIJKLM ]) AT_CLEANUP @@ -217,26 +218,27 @@ LIST. ]) AT_CHECK([pspp -o pspp.csv pc+-file.sps]) AT_CHECK([cat pspp.csv], [0], [dnl -File label: PSPP synthetic test file +Table: File Label +Label,PSPP synthetic test file Table: Variables -Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values -NUM1,1,,Scale,Input,8,Right,F8.0,F8.0, -NUM2,2,,Scale,Input,8,Right,F8.0,F8.0, -NUM3,3,,Scale,Input,8,Right,F8.0,F8.0, -NUM4,4,,Scale,Input,8,Right,F8.0,F8.0, -NUM5,5,,Scale,Input,8,Right,F8.0,F8.0, -STR1,6,,Nominal,Input,1,Left,A1,A1, -STR2,7,,Nominal,Input,2,Left,A2,A2, -STR3,8,,Nominal,Input,3,Left,A3,A3, -STR4,9,,Nominal,Input,4,Left,A4,A4, -STR5,10,,Nominal,Input,5,Left,A5,A5, -STR6,11,,Nominal,Input,6,Left,A6,A6, -STR7,12,,Nominal,Input,7,Left,A7,A7, -STR8,13,,Nominal,Input,8,Left,A8,A8, +Name,Position,Measurement Level,Role,Width,Alignment,Print Format,Write Format +NUM1,1,Scale,Input,8,Right,F8.0,F8.0 +NUM2,2,Scale,Input,8,Right,F8.0,F8.0 +NUM3,3,Scale,Input,8,Right,F8.0,F8.0 +NUM4,4,Scale,Input,8,Right,F8.0,F8.0 +NUM5,5,Scale,Input,8,Right,F8.0,F8.0 +STR1,6,Nominal,Input,1,Left,A1,A1 +STR2,7,Nominal,Input,2,Left,A2,A2 +STR3,8,Nominal,Input,3,Left,A3,A3 +STR4,9,Nominal,Input,4,Left,A4,A4 +STR5,10,Nominal,Input,5,Left,A5,A5 +STR6,11,Nominal,Input,6,Left,A6,A6 +STR7,12,Nominal,Input,7,Left,A7,A7 +STR8,13,Nominal,Input,8,Left,A8,A8 Table: Value Labels -Variable,Value,Label +Variable Value,,Label NUM1,1,one NUM2,2,two ,3,three @@ -330,19 +332,20 @@ LIST. ]) AT_CHECK([pspp -o pspp.csv pc+-file.sps]) AT_CHECK([cat pspp.csv], [0], [dnl -File label: PSPP synthetic test file +Table: File Label +Label,PSPP synthetic test file Table: Variables -Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values -NUM1,1,,Scale,Input,8,Right,F8.0,F8.0, -NUM2,2,,Scale,Input,8,Right,F8.0,F8.0, -STR4,3,,Nominal,Input,4,Left,A4,A4, -STR8,4,,Nominal,Input,8,Left,A8,A8, -STR15,5,,Nominal,Input,15,Left,A15,A15, +Name,Position,Measurement Level,Role,Width,Alignment,Print Format,Write Format +NUM1,1,Scale,Input,8,Right,F8.0,F8.0 +NUM2,2,Scale,Input,8,Right,F8.0,F8.0 +STR4,3,Nominal,Input,4,Left,A4,A4 +STR8,4,Nominal,Input,8,Left,A8,A8 +STR15,5,Nominal,Input,15,Left,A15,A15 Table: Data List NUM1,NUM2,STR4,STR8,STR15 --5,150,abcd,efghj ,efghijklABCDEFG +-5,150,abcd,efghj,efghijklABCDEFG 1000,.,PQRS,TUVWXYZa,bcdefghijklmnop ]) AT_CLEANUP @@ -395,24 +398,25 @@ AT_DATA([pc+-file.sps], [dnl SYSFILE INFO FILE='pc+-file.sav' ENCODING='us-ascii'. ]) AT_CHECK([pspp -O format=csv pc+-file.sps], [0], [dnl -File:,pc+-file.sav -Label:,PSPP synthetic test file -Created:,11/28/14 15:11:00 by PCSPSS PSPP synthetic test product -Integer Format:,Little Endian -Real Format:,IEEE 754 LE. -Variables:,4 -Cases:,1 -Type:,SPSS/PC+ System File -Weight:,NUM3 -Compression:,None -Encoding:,us-ascii +Table: File Information +File,pc+-file.sav +Label,PSPP synthetic test file +Created,11/28/14 15:11:00 by PCSPSS PSPP synthetic test product +Integer Format,Little Endian +Real Format,IEEE 754 LE. +Variables,4 +Cases,1 +Type,SPSS/PC+ System File +Weight,NUM3 +Compression,None +Encoding,us-ascii Table: Variables -Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values -NUM1,1,,Scale,Input,8,Right,F8.0,F8.0, -NUM2,2,,Scale,Input,8,Right,F8.0,F8.0, -NUM3,3,,Scale,Input,8,Right,F8.0,F8.0, -NUM4,4,,Scale,Input,8,Right,F8.0,F8.0, +Name,Position,Measurement Level,Role,Width,Alignment,Print Format,Write Format +NUM1,1,Scale,Input,8,Right,F8.0,F8.0 +NUM2,2,Scale,Input,8,Right,F8.0,F8.0 +NUM3,3,Scale,Input,8,Right,F8.0,F8.0 +NUM4,4,Scale,Input,8,Right,F8.0,F8.0 ]) AT_CLEANUP @@ -474,37 +478,39 @@ AT_CHECK([pspp -O format=csv pc+-file.sps], [0], [stdout], []) AT_CHECK([sed 's/default encoding.*For/default encoding. For/' stdout], [0], [dnl "warning: `pc+-file.sav': Using default encoding. For best results, specify an encoding explicitly. Use SYSFILE INFO with ENCODING=""DETECT"" to analyze the possible encodings." -File label: PSPP synthetic test file +Table: File Label +Label,PSPP synthetic test file Table: Variables -Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values -NUM1,1,,Scale,Input,8,Right,F8.0,F8.0, -NUM2,2,,Scale,Input,8,Right,F8.0,F8.0, -NUM3,3,,Scale,Input,8,Right,F8.0,F8.0, -NUM4,4,,Scale,Input,8,Right,F8.0,F8.0, +Name,Position,Measurement Level,Role,Width,Alignment,Print Format,Write Format +NUM1,1,Scale,Input,8,Right,F8.0,F8.0 +NUM2,2,Scale,Input,8,Right,F8.0,F8.0 +NUM3,3,Scale,Input,8,Right,F8.0,F8.0 +NUM4,4,Scale,Input,8,Right,F8.0,F8.0 Table: Data List NUM1,NUM2,NUM3,NUM4 2,3,4,5 -File:,pc+-file.sav -Label:,PSPP synthetic test file -Created:,11/28/14 15:11:00 by PCSPSS PSPP synthetic test product -Integer Format:,Little Endian -Real Format:,IEEE 754 LE. -Variables:,4 -Cases:,1 -Type:,SPSS/PC+ System File -Weight:,Not weighted. -Compression:,None -Encoding:,us-ascii +Table: File Information +File,pc+-file.sav +Label,PSPP synthetic test file +Created,11/28/14 15:11:00 by PCSPSS PSPP synthetic test product +Integer Format,Little Endian +Real Format,IEEE 754 LE. +Variables,4 +Cases,1 +Type,SPSS/PC+ System File +Weight,Not weighted +Compression,None +Encoding,us-ascii Table: Variables -Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values -NUM1,1,,Scale,Input,8,Right,F8.0,F8.0, -NUM2,2,,Scale,Input,8,Right,F8.0,F8.0, -NUM3,3,,Scale,Input,8,Right,F8.0,F8.0, -NUM4,4,,Scale,Input,8,Right,F8.0,F8.0, +Name,Position,Measurement Level,Role,Width,Alignment,Print Format,Write Format +NUM1,1,Scale,Input,8,Right,F8.0,F8.0 +NUM2,2,Scale,Input,8,Right,F8.0,F8.0 +NUM3,3,Scale,Input,8,Right,F8.0,F8.0 +NUM4,4,Scale,Input,8,Right,F8.0,F8.0 ]) AT_CLEANUP @@ -1240,21 +1246,22 @@ DISPLAY DICTIONARY. LIST. ]) AT_CHECK([pspp -O format=csv pc+-file.sps], [0], [dnl -File label: PSPP synthetic test file +Table: File Label +Label,PSPP synthetic test file Table: Variables -Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values -NUM1,1,,Scale,Input,8,Right,F8.0,F8.0, -NUM2,2,,Scale,Input,8,Right,F8.0,F8.0, -STR4,3,,Nominal,Input,4,Left,A4,A4, -STR8,4,,Nominal,Input,8,Left,A8,A8, -STR15,5,,Nominal,Input,15,Left,A15,A15, +Name,Position,Measurement Level,Role,Width,Alignment,Print Format,Write Format +NUM1,1,Scale,Input,8,Right,F8.0,F8.0 +NUM2,2,Scale,Input,8,Right,F8.0,F8.0 +STR4,3,Nominal,Input,4,Left,A4,A4 +STR8,4,Nominal,Input,8,Left,A8,A8 +STR15,5,Nominal,Input,15,Left,A15,A15 warning: `pc+-file.sav' near offset 0x308: Possible compressed data corruption: string contains compressed integer (opcode 101). Table: Data List NUM1,NUM2,STR4,STR8,STR15 --5,150,abcd,efghj ,efghijklABCDEFG +-5,150,abcd,efghj,efghijklABCDEFG 1000,.,PQRS,TUVWXYZa,bcdefghijklmnop ]) AT_CLEANUP