changeset 33126:2ff2d201a344

test: Include tests for output message in scanf function (bug #65390, bug #63467). * io.tst: Uncomment out assert statements and enforce test coverage.
author Rik <rik@octave.org>
date Sat, 02 Mar 2024 14:02:19 -0800
parents fc467370dacb
children 2edd93f097ff
files test/io.tst
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/io.tst	Sat Mar 02 13:58:51 2024 -0800
+++ b/test/io.tst	Sat Mar 02 14:02:19 2024 -0800
@@ -671,8 +671,7 @@
 %! [val, count, msg, pos] = sscanf ('1 2 ', '%f');
 %! assert (val, [1; 2]);
 %! assert (count, 2);
-%! ## FIXME: The message should be empty, but is not.
-%! # assert (msg, '');
+%! assert (msg, '');
 %! assert (pos, 5);
 
 ## Test newline at end of input string
@@ -680,8 +679,7 @@
 %! [val, count, msg, pos] = sscanf ("1 2\n", '%f');
 %! assert (val, [1; 2]);
 %! assert (count, 2);
-%! ## FIXME: The message should be empty, but is not.
-%! # assert (msg, '');
+%! assert (msg, '');
 %! assert (pos, 5);
 
 %!test