Mercurial > octave
comparison test/io.tst @ 29494:76269aa97398
if bug number is supplied, prefer '%!test' over '%!xtest'
Files affected: dlmread.cc, file-io.cc, mappers.cc, pr-output.cc,
strfns.cc, asech.m, importdata.m, gammainc.m, test.m, classdef.tst,
io.tst, jit.tst, nest.tst.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 06 Apr 2021 10:47:40 -0400 |
parents | 7854d5752dd2 |
children | 796f54d4ddbf |
comparison
equal
deleted
inserted
replaced
29493:de40b395b9c3 | 29494:76269aa97398 |
---|---|
344 %! assert (val, 3); | 344 %! assert (val, 3); |
345 %! assert (count, 1); | 345 %! assert (count, 1); |
346 %! assert (msg, "sscanf: format failed to match"); | 346 %! assert (msg, "sscanf: format failed to match"); |
347 %! assert (pos, 2); | 347 %! assert (pos, 2); |
348 | 348 |
349 %!xtest <47413> | 349 %!test <47413> |
350 %! ## Same test code as above, but intended only for test statistics on Mac. | 350 %! ## Same test code as above, but intended only for test statistics on Mac. |
351 %! if (! ismac ()), return; endif | 351 %! if (! ismac ()), return; endif |
352 %! [val, count, msg, pos] = sscanf ("3I2", "%f"); | 352 %! [val, count, msg, pos] = sscanf ("3I2", "%f"); |
353 %! assert (val, 3); | 353 %! assert (val, 3); |
354 %! assert (count, 1); | 354 %! assert (count, 1); |
360 %! assert (val, 3); | 360 %! assert (val, 3); |
361 %! assert (count, 1); | 361 %! assert (count, 1); |
362 %! assert (msg, "sscanf: format failed to match"); | 362 %! assert (msg, "sscanf: format failed to match"); |
363 %! assert (pos, 2); | 363 %! assert (pos, 2); |
364 | 364 |
365 %!xtest <47413> | 365 %!test <47413> |
366 %! ## Same test code as above, but intended only for test statistics on Mac. | 366 %! ## Same test code as above, but intended only for test statistics on Mac. |
367 %! if (! ismac ()), return; endif | 367 %! if (! ismac ()), return; endif |
368 %! [val, count, msg, pos] = sscanf ("3In2", "%f"); | 368 %! [val, count, msg, pos] = sscanf ("3In2", "%f"); |
369 %! assert (val, 3); | 369 %! assert (val, 3); |
370 %! assert (count, 1); | 370 %! assert (count, 1); |
376 %! assert (val, [3; Inf; 2]); | 376 %! assert (val, [3; Inf; 2]); |
377 %! assert (count, 3); | 377 %! assert (count, 3); |
378 %! assert (msg, ""); | 378 %! assert (msg, ""); |
379 %! assert (pos, 6); | 379 %! assert (pos, 6); |
380 | 380 |
381 %!xtest <47413> | 381 %!test <47413> |
382 %! ## Same test code as above, but intended only for test statistics on Mac. | 382 %! ## Same test code as above, but intended only for test statistics on Mac. |
383 %! if (! ismac ()), return; endif | 383 %! if (! ismac ()), return; endif |
384 %! [val, count, msg, pos] = sscanf ("3Inf2", "%f"); | 384 %! [val, count, msg, pos] = sscanf ("3Inf2", "%f"); |
385 %! assert (val, [3; Inf; 2]); | 385 %! assert (val, [3; Inf; 2]); |
386 %! assert (count, 3); | 386 %! assert (count, 3); |