X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=be037a255a86681dfd6dde8cb1ddea47041586bf;hb=1128fa8566c932e3996abd427fc75bc4c946e656;hp=da1f5453089ca918510c6b19e914ac2dbbf33d42;hpb=9b4f78290edb5f5bedeb12e683546fa00082f108;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index da1f545..be037a2 100644 --- a/Test.obn +++ b/Test.obn @@ -1,19 +1,11 @@ MODULE Test; -VAR - i : INTEGER; - s : SET; +TYPE -BEGIN - INC(i); - ASSERT(i = 1); - DEC(i); - ASSERT(i = 0); + PC = ARRAY 3 OF PB; - INCL(s, 3); - ASSERT(3 IN s); - EXCL(s, 3); - ASSERT(~(3 IN s)); -END Test. + B = RECORD z : PC; next : PB END; + + PB = POINTER TO B; -Проверка встроенных процедур. +END Test.