X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=Test.obn;h=03df037492a62bec8642dbd45bd9a5ec5f2cc689;hp=8c3a8d1458efc80ddf4837c106b664b70a3abfae;hb=b09b4829b70cf34a470003286ea100663d7fe442;hpb=9f8036eb00032fa7f756113365cb42e05ab262df diff --git a/Test.obn b/Test.obn index 8c3a8d1..03df037 100644 --- a/Test.obn +++ b/Test.obn @@ -1,18 +1,12 @@ MODULE Test; -IMPORT Out; - VAR - msg : ARRAY 20 OF CHAR; + x : ARRAY 10 OF INTEGER; + p : POINTER TO ARRAY OF ARRAY OF INTEGER; 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; + NEW(p, 20, 30); + ASSERT(LEN(x, 0) = 10); + ASSERT(LEN(p^, 0) = 20); + ASSERT(LEN(p^, 1) = 30); END Test.