+ ansistring testing (from mailing list)

This commit is contained in:
carl 2002-07-07 11:16:06 +00:00
parent 3232d937be
commit f9f39bda33

View File

@ -297,6 +297,15 @@ function exit_loc_jump : boolean;
end;
function exit_loc_ansi(w: word) : ansistring;
var d: ansistring;
begin
str(w,d);
exit(d);
end;
var
failed : boolean;
array_24bits : t24bitarray;
@ -435,7 +444,7 @@ Begin
{ check for false, since having zero in register is rarer }
{ then having non-zero (just in case everything is corrupt) }
if exit_loc_flags then
failed := false;
failed := true;
if failed then
fail
else
@ -446,7 +455,16 @@ Begin
{ check for false, since having zero in register is rarer }
{ then having non-zero (just in case everything is corrupt) }
if exit_loc_jump then
failed := true;
if failed then
fail
else
writeln('Passed!');
write('Testing secondexitn() ansistring case...');
failed := false;
if exit_loc_ansi(10) <> '10' then
failed := true;
if failed then
fail
else
@ -456,7 +474,10 @@ end.
{
$Log$
Revision 1.1 2002-03-25 20:18:46 carl
Revision 1.2 2002-07-07 11:16:06 carl
+ ansistring testing (from mailing list)
Revision 1.1 2002/03/25 20:18:46 carl
+ exit node testing
}