CORRELATIONS: Improve error messages and coding style.
[pspp] / tests / language / stats / matrix.at
index c3cb334650b52c0dcc17ebc14f0e44e638c2a8e2..5fcc8b038d5b32ef74a6a9dcbe4a622a5121d6ed 100644 (file)
@@ -3643,6 +3643,14 @@ matrix.sps:18.26: note: WRITE: This syntax specifies field width 5.
 matrix.sps:19: error: WRITE: Output format E5.0 specifies width 5, but E
 requires a width between 6 and 40.
 
+matrix.sps:19.56: note: WRITE: This syntax specifies format E.
+   19 | WRITE 1/FIELD=1 TO 10 BY 5/OUTFILE='matrix.txt'/FORMAT=E.
+      |                                                        ^
+
+matrix.sps:19.26: note: WRITE: This syntax specifies field width 5.
+   19 | WRITE 1/FIELD=1 TO 10 BY 5/OUTFILE='matrix.txt'/FORMAT=E.
+      |                          ^
+
 matrix.sps:20.51-20.52: error: WRITE: Format A9 is too wide for 8-byte matrix
 elements.
    20 | WRITE 1/FIELD=1 TO 10/OUTFILE='matrix.txt'/FORMAT=A9.
@@ -4018,8 +4026,10 @@ matrix.sps:7.1-7.7: error: SAVE: Required subcommand OUTFILE was not specified.
     7 | SAVE 1.
       | ^~~~~~~
 
-matrix.sps:8: warning: SAVE: VARIABLES and NAMES both specified; ignoring
-NAMES.
+matrix.sps:8.35-8.39: warning: SAVE: Ignoring NAMES because VARIABLES was also
+specified.
+    8 | SAVE 1/OUTFILE='matrix.sav'/NAMES={'a'}/VARIABLES=a.
+      |                                   ^~~~~
 
 matrix.sps:10: error: MATRIX: Cannot save 1×2 matrix to `matrix2.sav' because
 the first SAVE to `matrix2.sav' in this matrix program wrote a 1-column matrix.