X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=da1f5453089ca918510c6b19e914ac2dbbf33d42;hb=9b4f78290edb5f5bedeb12e683546fa00082f108;hp=98ac0e23e370819a8b9e96db5387e7f64d97eb65;hpb=a0ff807fe0e69c50469e506836467da32f23f754;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 98ac0e2..da1f545 100644 --- a/Test.obn +++ b/Test.obn @@ -1,12 +1,19 @@ MODULE Test; VAR - a : POINTER TO RECORD END; - b : POINTER TO ARRAY OF INTEGER; - c : PROCEDURE; + i : INTEGER; + s : SET; BEGIN - a := NIL; - b := NIL; - c := NIL; + INC(i); + ASSERT(i = 1); + DEC(i); + ASSERT(i = 0); + + INCL(s, 3); + ASSERT(3 IN s); + EXCL(s, 3); + ASSERT(~(3 IN s)); END Test. + +Проверка встроенных процедур.