X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=8371d40d26dc72bcfbac718753e7ba1e333de80b;hb=3d4021b9a2dd52aaf4b97859a8a58b74903ebac9;hp=8249fb77223116fd24082f63a7dba78821d98fe1;hpb=3cd41dedaffe60018890cbe66baea63691fe62e8;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 8249fb7..8371d40 100644 --- a/Test.obn +++ b/Test.obn @@ -2,7 +2,31 @@ MODULE Test; IMPORT Out; +CONST + im1 = -1; + bol = ~FALSE; + set = { 1, 2, 3..6 }; + fm1 = -1.0; + dm1 = -1.0D0; + BEGIN Out.Open; - 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; END Test.