Mercurial > hg > octave-nkf
changeset 9629:e1345a9002e8
pr-output.cc: new test
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 08 Sep 2009 14:44:55 -0400 |
parents | 73e6ad869f08 |
children | d52e405df4f7 |
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-07 Jaroslav Hajek <highegg@gmail.com> * src/Makefile.in: Add LDFLAGS to OCT_LINK_DEPS.
--- 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) {