X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=8371d40d26dc72bcfbac718753e7ba1e333de80b;hb=3d4021b9a2dd52aaf4b97859a8a58b74903ebac9;hp=8c3a8d1458efc80ddf4837c106b664b70a3abfae;hpb=9f8036eb00032fa7f756113365cb42e05ab262df;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 8c3a8d1..8371d40 100644 --- a/Test.obn +++ b/Test.obn @@ -2,17 +2,31 @@ MODULE Test; IMPORT Out; -VAR - msg : ARRAY 20 OF CHAR; +CONST + im1 = -1; + bol = ~FALSE; + set = { 1, 2, 3..6 }; + fm1 = -1.0; + dm1 = -1.0D0; BEGIN Out.Open; - COPY("Hello World!", msg); - Out.String(msg); Out.Ln; - COPY("Hell!", msg); - Out.String(msg); Out.Ln; - COPY("The quick brown fox jumps over the lazy dog", msg); - Out.String(msg); Out.Ln; - msg := "Hello World!"; - Out.String(msg); 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; END Test.