Mercurial > hg > octave-nkf
view test/test_infnan.m @ 6172:2de853a110df
[project @ 2006-11-15 22:53:47 by jwe]
author | jwe |
---|---|
date | Wed, 15 Nov 2006 22:53:48 +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)));