view test/test_infnan.m @ 5967:d542d9197839 ss-2-9-8

[project @ 2006-08-24 21:24:53 by jwe]
author jwe
date Thu, 24 Aug 2006 21:27:41 +0000
parents 1ad66ea35fe5
children 93c65f2a5668
line wrap: on
line source

%% Automatically generated from DejaGNU files

%% test/octave.test/infnan/infnan-1.m
%!test
%! a = Inf;
%! assert(!(finite (a)));

%% test/octave.test/infnan/infnan-2.m
%!test
%! a = Inf;
%! assert(isinf (a));

%% test/octave.test/infnan/infnan-3.m
%!test
%! a = Inf;
%! assert(!(isnan (a)));

%% test/octave.test/infnan/infnan-4.m
%!test
%! b = NaN;
%! assert(!(finite (b)));

%% test/octave.test/infnan/infnan-5.m
%!test
%! b = NaN;
%! assert(!(isinf (b)));

%% test/octave.test/infnan/infnan-6.m
%!test
%! b = NaN;
%! assert(isnan (b));

%% test/octave.test/infnan/infnan-7.m
%!test
%! c = rand ();
%! assert(finite (c));

%% test/octave.test/infnan/infnan-8.m
%!test
%! c = rand ();
%! assert(!(isinf (c)));

%% test/octave.test/infnan/infnan-9.m
%!test
%! c = rand ();
%! assert(!(isnan (c)));