mirror of
https://github.com/vishapoberon/oberonbyexample.git
synced 2026-04-05 21:02:25 +00:00
it works!
This commit is contained in:
parent
0d23645e83
commit
8324eeb9b9
1 changed files with 10 additions and 1 deletions
11
test.Mod
11
test.Mod
|
|
@ -1,6 +1,6 @@
|
|||
MODULE test;
|
||||
|
||||
IMPORT Days;
|
||||
IMPORT Days, Out;
|
||||
|
||||
VAR today, yesterday, tomorrow: Days.Day;
|
||||
|
||||
|
|
@ -8,6 +8,15 @@ BEGIN
|
|||
today := Days.mon; (*init*)
|
||||
|
||||
yesterday := Days.Prev(today);
|
||||
IF yesterday = Days.sun
|
||||
THEN
|
||||
Out.String("it works!"); Out.Ln
|
||||
END;
|
||||
tomorrow := Days.Next(today);
|
||||
|
||||
IF tomorrow = Days.tue
|
||||
THEN
|
||||
Out.String("it works!"); Out.Ln
|
||||
END;
|
||||
|
||||
END test.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue