Mercurial > hg > octave-lyh
changeset 7762:9c24ca8761f7
fntests.m: minor cleanups
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 06 May 2008 06:07:28 -0400 |
parents | 5adeea5de26c |
children | 0c6b4c7d7117 |
files | test/ChangeLog test/fntests.m |
diffstat | 2 files changed, 15 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2008-05-06 John W. Eaton <jwe@octave.org> + + * fntests.m: Use puts instead of printf where appropriate. + Fix missing newline in message. + 2008-03-26 David Bateman <dbateman@free.fr> * test_index-wfi-f.m: Split large block of tests. New tests.
--- a/test/fntests.m +++ b/test/fntests.m @@ -65,7 +65,7 @@ printf (" FAIL %d", nfail); endif endif - printf ("\n"); + puts ("\n"); endfunction function y = hastests (f) @@ -192,7 +192,7 @@ endif test ("", "explain", fid); dp = dn = dxf = dsk = 0; - printf ("\nIntegrated test scripts:\n\n"); + puts ("\nIntegrated test scripts:\n\n"); for i = 1:length (fundirs) [p, n, xf, sk] = run_test_script (fid, fundirs{i}); dp += p; @@ -200,7 +200,7 @@ dxf += xf; dsk += sk; endfor - printf ("\nFixed test scripts:\n\n"); + puts ("\nFixed test scripts:\n\n"); for i = 1:length (testdirs) [p, n, xf, sk] = run_test_dir (fid, testdirs{i}); dp += p; @@ -221,21 +221,21 @@ endif printf ("\nThere %s %d expected %s (see fntests.log for details).\n", t1, dxf, t2); - printf ("\nExpected failures are known bugs. Please help improve\n"); - printf ("Octave by contributing fixes for them.\n"); + puts ("\nExpected failures are known bugs. Please help improve\n"); + puts ("Octave by contributing fixes for them.\n"); endif if (dsk > 0) printf ("\nThere were %d skipped tests (see fntest.log for details).\n", dsk); - printf ("Skipped tests are features that are disabled in this version\n"); - printf ("of Octave as the needed libraries were not present when Octave\n"); - printf ("was built\n"); + puts ("Skipped tests are features that are disabled in this version\n"); + puts ("of Octave as the needed libraries were not present when Octave\n"); + puts ("was built\n"); endif report_files_with_no_tests (files_with_tests, files_with_no_tests, ".m"); report_files_with_no_tests (files_with_tests, files_with_no_tests, ".cc"); - printf ("\nPlease help improve Octave by contributing tests for"); - printf ("these files (see the list in the file fntests.log).\n"); + puts ("\nPlease help improve Octave by contributing tests for\n"); + puts ("these files (see the list in the file fntests.log).\n"); fprintf (fid, "\nFiles with no tests:\n\n%s", list_in_columns (files_with_no_tests, 80));