Aggregate Dialog: Convert from old fashioned method to PsppireDialogAction paradigm
[pspp] / tests / data / por-file.at
index 2020f0a03446ccede4530c97f0477963e0993ac7..c23a047f31c88a7f7b02760b692e76faa1e0f238 100644 (file)
@@ -88,35 +88,88 @@ DISPLAY DICTIONARY.
 LIST.
 ])
 AT_CHECK([pspp -O format=csv import.sps], [0], [dnl
-Variable,Description,,Position
-VAR1,Format: F1.0,,1
-,Measure: Scale,,
-,Display Alignment: Right,,
-,Display Width: 8,,
-,1,one,
-VAR2,Format: F1.0,,2
-,Measure: Scale,,
-,Display Alignment: Right,,
-,Display Width: 8,,
-,2,two,
-VAR3,Format: F1.0,,3
-,Measure: Scale,,
-,Display Alignment: Right,,
-,Display Width: 8,,
-,3,three,
-VAR4,Format: F1.0,,4
-,Measure: Scale,,
-,Display Alignment: Right,,
-,Display Width: 8,,
-,4,four,
-VAR5,Format: F1.0,,5
-,Measure: Scale,,
-,Display Alignment: Right,,
-,Display Width: 8,,
-,5,five,
+Variable,Description,Position
+VAR1,"Format: F1.0
+
+Value,Label
+1,one",1
+VAR2,"Format: F1.0
+
+Value,Label
+2,two",2
+VAR3,"Format: F1.0
+
+Value,Label
+3,three",3
+VAR4,"Format: F1.0
+
+Value,Label
+4,four",4
+VAR5,"Format: F1.0
+
+Value,Label
+5,five",5
 
 Table: Data List
 VAR1,VAR2,VAR3,VAR4,VAR5
 1,2,3,4,5
 ])
+AT_DATA([sys-file-info.sps], [SYSFILE INFO FILE='data.por'
+])
+AT_CHECK([pspp -O format=csv sys-file-info.sps | sed '/Encoding/d
+/Integer Format/d
+/Real Format/d
+/Created/d
+/Product/d
+'], [0], [dnl
+File:,data.por
+Label:,No label.
+Variables:,5
+Cases:,Unknown
+Type:,SPSS Portable File
+Weight:,Not weighted.
+Compression:,None
+
+Variable,Description,Position
+VAR1,"Format: F1.0
+Measure: Scale
+Role: Input
+Display Alignment: Right
+Display Width: 8
+
+Value,Label
+1,one",1
+VAR2,"Format: F1.0
+Measure: Scale
+Role: Input
+Display Alignment: Right
+Display Width: 8
+
+Value,Label
+2,two",2
+VAR3,"Format: F1.0
+Measure: Scale
+Role: Input
+Display Alignment: Right
+Display Width: 8
+
+Value,Label
+3,three",3
+VAR4,"Format: F1.0
+Measure: Scale
+Role: Input
+Display Alignment: Right
+Display Width: 8
+
+Value,Label
+4,four",4
+VAR5,"Format: F1.0
+Measure: Scale
+Role: Input
+Display Alignment: Right
+Display Width: 8
+
+Value,Label
+5,five",5
+])
 AT_CLEANUP