# HG changeset patch # User Rik # Date 1585511599 25200 # Node ID c805c1b541fa486fd4bb1c101ea1b6028dd54d21 # Parent abcff237241f79118f25a647389797586979d627 test: Add BIST test for textscan (Bug #51093). * file-io.cc (Ftextscan): Add BIST test for Bug #51093. diff -r abcff237241f -r c805c1b541fa libinterp/corefcn/file-io.cc --- a/libinterp/corefcn/file-io.cc Sun Mar 29 11:26:16 2020 -0700 +++ b/libinterp/corefcn/file-io.cc Sun Mar 29 12:53:19 2020 -0700 @@ -2316,6 +2316,11 @@ %! assert (C{1}, { "101"; "201" }); %! assert (C{2}, int32 ([ 0; 0 ])); +%!test <*51093> +%! str = sprintf ('a\t\tb\tc'); +%! C = textscan (str, '%s', 'Delimiter', '\t', 'MultipleDelimsAsOne', false); +%! assert (C{1}, {'a'; ''; 'b'; 'c'}); + */ // These tests have end-comment sequences, so can't just be in a comment