7016
|
1 ## Copyright (C) 2007 John W. Eaton |
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
|
8 ## your option) any later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, see |
|
17 ## <http://www.gnu.org/licenses/>. |
|
18 |
5590
|
19 %% Automatically generated from DejaGNU files |
|
20 |
|
21 %% test/octave.test/infnan/infnan-1.m |
|
22 %!test |
|
23 %! a = Inf; |
|
24 %! assert(!(finite (a))); |
|
25 |
|
26 %% test/octave.test/infnan/infnan-2.m |
|
27 %!test |
|
28 %! a = Inf; |
|
29 %! assert(isinf (a)); |
|
30 |
|
31 %% test/octave.test/infnan/infnan-3.m |
|
32 %!test |
|
33 %! a = Inf; |
|
34 %! assert(!(isnan (a))); |
|
35 |
|
36 %% test/octave.test/infnan/infnan-4.m |
|
37 %!test |
|
38 %! b = NaN; |
|
39 %! assert(!(finite (b))); |
|
40 |
|
41 %% test/octave.test/infnan/infnan-5.m |
|
42 %!test |
|
43 %! b = NaN; |
|
44 %! assert(!(isinf (b))); |
|
45 |
|
46 %% test/octave.test/infnan/infnan-6.m |
|
47 %!test |
|
48 %! b = NaN; |
|
49 %! assert(isnan (b)); |
|
50 |
|
51 %% test/octave.test/infnan/infnan-7.m |
|
52 %!test |
|
53 %! c = rand (); |
|
54 %! assert(finite (c)); |
|
55 |
|
56 %% test/octave.test/infnan/infnan-8.m |
|
57 %!test |
|
58 %! c = rand (); |
|
59 %! assert(!(isinf (c))); |
|
60 |
|
61 %% test/octave.test/infnan/infnan-9.m |
|
62 %!test |
|
63 %! c = rand (); |
|
64 %! assert(!(isnan (c))); |
|
65 |