mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 20:20:16 +02:00
* added
This commit is contained in:
parent
a4ee36350c
commit
5c3f62a8cd
14
tests/webtbs/tw1310.pp
Normal file
14
tests/webtbs/tw1310.pp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
type
|
||||||
|
Days = (Mon, Tue, Wed, Thu, Fri, Sat, Sun);
|
||||||
|
Weekdays = Mon..Fri;
|
||||||
|
Weekend = Sat..Sun;
|
||||||
|
begin
|
||||||
|
WriteLn('Days ', Ord(Low(Days)) , Ord(High(Days)) :2);
|
||||||
|
WriteLn('Weekdays ', Ord(Low(Weekdays)), Ord(High(Weekdays)):2, ' should be 4!');
|
||||||
|
WriteLn('Weekend ', Ord(Low(Weekend)) , Ord(High(Weekend)) :2);
|
||||||
|
if ord(high(weekdays))<>4 then
|
||||||
|
begin
|
||||||
|
writeln('ERROR!');
|
||||||
|
Halt(1);
|
||||||
|
end;
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user