Mercurial > hg > octave-thorsten
changeset 12087:6ba99f799ec1 release-3-2-x
pr-output.cc: new test
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Sep 2009 14:14:32 +0200 |
parents | 330cf1e13fb6 |
children | 22395d0870fd |
files | src/ChangeLog src/pr-output.cc |
diffstat | 2 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-09-08 Rafael Laboissiere <rafael@debian.org> + + * pr-output.cc: New test. + 2009-09-03 John W. Eaton <jwe@octave.org> * pr-output.cc (set_format (const Complex&, int&, int&)):
--- a/src/pr-output.cc +++ b/src/pr-output.cc @@ -3350,6 +3350,18 @@ return retval; } +/* +%!test +%! format short +%! fd = tmpfile (); +%! for r = [0, Inf -Inf, NaN] +%! for i = [0, Inf -Inf, NaN] +%! fdisp (fd, complex (r, i)); +%! endfor +%! endfor +%! fclose (fd); +*/ + static void init_format_state (void) {