X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=Test.obn;h=b9b14ae66be8abf069ff9c19ca678ff3e117694d;hb=57963798c338b0b73e032e9288003fd462f8b954;hp=67a35e4ef616fb5f76e91b2f1cf9a5b60eb0ffbc;hpb=ba1a55241f3841d1254317d76d45322c85fb687b;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 67a35e4..b9b14ae 100644 --- a/Test.obn +++ b/Test.obn @@ -1,14 +1,23 @@ MODULE Test; -IMPORT Out; +TYPE + Stream* = POINTER TO Handle; + Handle = RECORD END; + + Writer* = RECORD END; + + Printer* = RECORD (Writer) END; + +VAR + s : Stream; + o : Writer; + out : Printer; + +PROCEDURE SetStream(VAR w : Writer; stream : Stream); +BEGIN +END SetStream; BEGIN - Out.String("A"); - Out.Char("A"); - Out.Ln; - ASSERT("A" = 041X); - ASSERT(041X = "A"); - ASSERT(ORD("A") = 041H); - ASSERT(041H = ORD("A")); - ASSERT("A" = "A"); + SetStream(o, s); + SetStream(out, s); END Test.