redoing dev style to be more test centric, from lessons learned with lisp-matrix.
[CommonLispStat.git] / src / unittests / unittests-proto.lisp
blob99ceefb2f0f65ddcc8ee06e484a893008640b675
1 ;;; -*- mode: lisp -*-
2 ;;; Copyright (c) 2007, by A.J. Rossini <blindglobe@gmail.com>
3 ;;; See COPYRIGHT file for any additional restrictions (BSD license).
4 ;;; Since 1991, ANSI was finally finished. Edited for ANSI Common Lisp.
6 ;;; This is semi-external to lispstat core packages. The dependency
7 ;;; should be that lispstat packages are dependencies for the unit
8 ;;; tests. However, where they will end up is still to be
9 ;;; determined.
12 (in-package :lisp-stat-unittests-proto)
14 ;;; Object System tests
16 ;; need to ensure stability of add, display, send, instantiate and
17 ;; similar actions.
19 (deftestsuite lisp-stat-ut-proto (lisp-stat)
21 (:tests
22 (create-proto (ensure (typep (defproto test-me) 'instance)))
23 (instance1 (ensure (send test-me :isnew)))
24 (instance2 (ensure (send test-me :has-slot 'new)))
25 (instance5 (ensure (send test-me :own-slots 'new)))))
27 ;; (run-tests :suite 'lisp-stat-ut-proto)