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

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

File size:
1.2 KB

Line  

1  ;* Mode: Lisp * 

2  ;;;; Author: Paul Dietz 

3  ;;;; Created: Sun Jan 26 20:20:27 2003 

4  ;;;; Contains: Tests of SIMPLEBITVECTORP 

5  

6  (inpackage :cltest) 

7  

8  (deftest simplebitvectorp.2 

9  (notnotmv (simplebitvectorp #*)) 

10  t) 

11  

12  (deftest simplebitvectorp.3 

13  (notnotmv (simplebitvectorp #*00101)) 

14  t) 

15  

16  (deftest simplebitvectorp.4 

17  (simplebitvectorp #(0 1 1 1 0 0)) 

18  nil) 

19  

20  (deftest simplebitvectorp.5 

21  (simplebitvectorp "011100") 

22  nil) 

23  

24  (deftest simplebitvectorp.6 

25  (simplebitvectorp 0) 

26  nil) 

27  

28  (deftest simplebitvectorp.7 

29  (simplebitvectorp 1) 

30  nil) 

31  

32  (deftest simplebitvectorp.8 

33  (simplebitvectorp nil) 

34  nil) 

35  

36  (deftest simplebitvectorp.9 

37  (simplebitvectorp 'x) 

38  nil) 

39  

40  (deftest simplebitvectorp.10 

41  (simplebitvectorp '(0 1 1 0)) 

42  nil) 

43  

44  (deftest simplebitvectorp.11 

45  (simplebitvectorp (makearray '(2 2) :elementtype 'bit 

46  :initialelement 0)) 

47  nil) 

48  

49  (deftest simplebitvectorp.12 

50  (checktypepredicate #'simplebitvectorp 'simplebitvector) 

51  nil) 

52  

53  (deftest simplebitvectorp.error.1 

54  (signalserror (simplebitvectorp) programerror) 

55  t) 

56  

57  (deftest simplebitvectorp.error.2 

58  (signalserror (simplebitvectorp #* #*) programerror) 

59  t) 

Note: See
TracBrowser
for help on using the repository browser.