mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
no message
This commit is contained in:
parent
c47ea819b2
commit
38328193f6
30
tests/test/units/math/tnaninf.pp
Normal file
30
tests/test/units/math/tnaninf.pp
Normal file
@ -0,0 +1,30 @@
|
||||
uses
|
||||
math;
|
||||
|
||||
begin
|
||||
if not(isnan(nan)) then
|
||||
begin
|
||||
writeln('error 1');
|
||||
halt(1);
|
||||
end;
|
||||
if not(isinfinite(infinity)) then
|
||||
begin
|
||||
writeln('error 2');
|
||||
halt(1);
|
||||
end;
|
||||
if isnan(12341234) then
|
||||
begin
|
||||
writeln('error 3');
|
||||
halt(1);
|
||||
end;
|
||||
if isinfinite(0) then
|
||||
begin
|
||||
writeln('error 4');
|
||||
halt(1);
|
||||
end;
|
||||
if isinfinite(12341234) then
|
||||
begin
|
||||
writeln('error 5');
|
||||
halt(1);
|
||||
end;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user