source: trunk/source/tests/ansi-tests/hash-table.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 11 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 851 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.