added more test code

This commit is contained in:
2022-05-05 13:04:04 +00:00
parent ff089929a9
commit 0725bfe27a
4 changed files with 31 additions and 3 deletions

View File

@ -63,3 +63,30 @@
)
(x)
(defclass T
| j |
(defun ::* new()
(set j 99)
(return self)
)
(defun x()
(do
| x |
(set x 1)
(while (< x j)
(defun Q() x)
(set x (+ x 1))
)
}
)
)
(set t (:T new))
(:t x)
(set t (Q))
(if (/= t 99) (print "ERROR: t is not 99\n")
else (printf "OK: %d\n" t))