~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to ansi-tests/hash-table.lsp

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;-*- Mode:     Lisp -*-
 
2
;;;; Author:   Paul Dietz
 
3
;;;; Created:  Sun Jan 26 21:30:42 2003
 
4
;;;; Contains: Tests of HASH-TABLE and related interface
 
5
 
 
6
(in-package :cl-test)
 
7
 
 
8
(deftest hash-table.1
 
9
  (notnot-mv (find-class 'hash-table))
 
10
  t)
 
11
 
 
12
(deftest hash-table.2
 
13
  (loop for e in '(nil t 1 10.0 (a b c) #(a b c) #*1011
 
14
                       #0aNIL #2a((a b)(c d)) #p"foo"
 
15
                       "bar" #\a 3/5 #c(1.0 2.0))
 
16
        when (typep e 'hash-table)
 
17
        collect e)
 
18
  nil)
 
19
 
 
20
(deftest hash-table.3
 
21
  (let ((c (find-class 'hash-table)))
 
22
    (loop for e in '(nil t 1 10.0 (a b c) #(a b c) #*1011
 
23
                         #0aNIL #2a((a b)(c d)) #p"foo"
 
24
                         "bar" #\a 3/5 #c(1.0 2.0))
 
25
          when (typep e c)
 
26
          collect e))
 
27
  nil)
 
28
 
 
29
(deftest hash-table.4
 
30
  (notnot-mv (typep (make-hash-table) 'hash-table))
 
31
  t)
 
32
 
 
33
(deftest hash-table.5
 
34
  (notnot-mv (typep (make-hash-table) (find-class 'hash-table)))
 
35
  t)
 
36
 
 
37
 
 
38
 
 
39
             
 
40
 
 
41