os = &output_specs[n_os - 1];
os->n_rc = 0;
os->rc = NULL;
+ bool format = false;
while (lex_token (lexer) != T_SLASH &&
lex_token (lexer) != T_ENDCMD)
fmt.d = decimals;
os->fmt = fmt;
+ format = true;
}
else
{
lex_error (lexer, NULL);
goto error;
-
}
}
+ if (!format)
+ goto error;
}
else
{
lex_error (lexer, NULL);
goto error;
-
}
}
AT_BANNER([output -- tables])
-AT_SETUP([precision])
+AT_SETUP([OUTPUT precision])
AT_DATA([prec.sps], [[
data list notable list /A * B *.
])
AT_CLEANUP
+
+
+
+
+AT_SETUP([OUTPUT crash])
+
+AT_DATA([prec.sps], [[
+data list notable list /A * B *.
+begin data.
+2.0 3.0
+1.0 2.0
+end data.
+
+OUTPUT MODIFY
+ /SELECT TABLES
+ /TABLECELLS SELECT = [ SIGNIFICANCE ]
+ "FORMAT = F/1.
+
+t-test /PAIRS a with b (PAIRED).
+]])
+
+AT_CHECK([pspp -O format=csv prec.sps], [1], [ignore])
+
+AT_CLEANUP
\ No newline at end of file