diff --git a/Test.obn b/Test.obn
index f4deaccac3d5c739ec23505c314e13b8d333e776..8371d40d26dc72bcfbac718753e7ba1e333de80b 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
-IMPORT
- Out,
- System;
+IMPORT Out;
-TYPE
- RBase = RECORD END;
- R = RECORD (RBase) END;
+CONST
+ im1 = -1;
+ bol = ~FALSE;
+ set = { 1, 2, 3..6 };
+ fm1 = -1.0;
+ dm1 = -1.0D0;
BEGIN
Out.Open;
- IF FALSE THEN
- Out.String("Hello World!"); Out.Ln;
+
+ Out.Int(im1, 0); Out.Ln;
+ Out.Real(fm1, 0); Out.Ln;
+ Out.LongReal(dm1, 0); Out.Ln;
+
+ IF 5 IN set THEN
+ Out.String("SET: Ok"); Out.Ln;
+ ELSE
+ Out.String("INVALID SET"); Out.Ln;
+ HALT(1);
+ END;
+
+ IF bol THEN
+ Out.String("BOOLEAN: Ok"); Out.Ln;
+ ELSE
+ Out.String("INVALID BOOLEAN"); Out.Ln;
+ HALT(1);
END;
- System.Halt(1);
END Test.