Mercurial > octave
diff src/pr-output.cc @ 9629:e1345a9002e8
pr-output.cc: new test
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 08 Sep 2009 14:44:55 -0400 |
parents | 66970dd627f6 |
children | 85dd3a2c9355 |
line wrap: on
line diff
--- a/src/pr-output.cc Tue Sep 08 14:27:35 2009 +0200 +++ b/src/pr-output.cc Tue Sep 08 14:44:55 2009 -0400 @@ -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) {