Mercurial > octave
changeset 26865:dfd0a2cdb621
Fix fopen test failing on Windows.
* io.tst: Don't use line break which is platform dependent.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 08 Mar 2019 22:06:32 +0100 |
parents | 041caa61ed34 |
children | 65e5526ad987 |
files | test/io.tst |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/io.tst Fri Mar 08 06:24:34 2019 +0000 +++ b/test/io.tst Fri Mar 08 22:06:32 2019 +0100 @@ -659,7 +659,7 @@ %! assert (name, temp_file); %! assert (mode, "w"); %! assert (codepage, "iso-8859-1"); -%! fprintf (fid, "aäu %s\n", "AÄU"); +%! fprintf (fid, "aäu %s", "AÄU"); %! fclose (fid); %! # open in binary mode %! fid2 = fopen (temp_file, "rb"); @@ -669,7 +669,7 @@ %! assert (codepage, "utf-8"); %! read_binary = fread (fid2); %! fclose (fid2); -%! assert (read_binary, [97 228 117 32 65 196 85 10].'); +%! assert (read_binary, [97 228 117 32 65 196 85].'); %! # open in text mode with correct encoding %! fid3 = fopen (temp_file, "rt", "n", "iso-8859-1"); %! read_text = fscanf (fid3, "%s");