~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/chicken/newobject2_runme_proxy.ss

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(load "newobject2.so")
 
2
 
 
3
(define f (make <Foo>))
 
4
 
 
5
(slot-set! f 'dummy 14)
 
6
(if (not (= (slot-ref f 'dummy) 14))
 
7
  (error "Bad dummy value"))
 
8
 
 
9
(if (not (= (fooCount) 0))
 
10
  (error "Bad foo count 1"))
 
11
 
 
12
(define f2 (makeFoo))
 
13
 
 
14
(if (not (= (fooCount) 1))
 
15
  (error "Bad foo count 2"))
 
16
 
 
17
(slot-set! f2 'dummy 16)
 
18
(if (not (= (slot-ref f2 'dummy) 16))
 
19
  (error "Bad dummy value for f2"))
 
20
 
 
21
(set! f #f)
 
22
(set! f2 #f)
 
23
 
 
24
(gc #t)
 
25
 
 
26
(if (not (= (fooCount) -1))
 
27
  (error "Bad foo count 3"))
 
28
 
 
29
(exit 0)