mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 02:49:28 +02:00
*** empty log message ***
This commit is contained in:
parent
fcf5315f23
commit
03052cb67e
@ -19,3 +19,5 @@ str/write(real_type) .. strreal.pp test correct rounding
|
|||||||
strreal2.pp test correct writing of 10 till 1e-24
|
strreal2.pp test correct writing of 10 till 1e-24
|
||||||
input/output .......... inoutres.pp tests inoutres values of invalid
|
input/output .......... inoutres.pp tests inoutres values of invalid
|
||||||
operations
|
operations
|
||||||
|
Units ................. testu1.pp tests init. & finalization and halt
|
||||||
|
testu2.pp in finalization
|
||||||
|
7
tests/test/testu1.pp
Normal file
7
tests/test/testu1.pp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
uses
|
||||||
|
dotest,testu2;
|
||||||
|
|
||||||
|
begin
|
||||||
|
if testvar<>1234567 then
|
||||||
|
do_error(1000);
|
||||||
|
end.
|
20
tests/test/testu2.pp
Normal file
20
tests/test/testu2.pp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
unit testu2;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
var
|
||||||
|
testvar : longint;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
uses
|
||||||
|
dotest;
|
||||||
|
|
||||||
|
initialization
|
||||||
|
testvar:=1234567;
|
||||||
|
finalization
|
||||||
|
if testvar<>1234567 then
|
||||||
|
do_error(1001)
|
||||||
|
else
|
||||||
|
halt(0);
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user