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

« back to all changes in this revision

Viewing changes to Examples/test-suite/guile/constover_runme.scm

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-08-02 15:57:10 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040802155710-bm292q1d6x6tw7gc
Tags: 1.3.21-5ubuntu1
Fix linking for ruby, python, perl and tcl bindings

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(dynamic-call "scm_init_constover_module" (dynamic-link "./libconstover.so"))
 
2
 
 
3
(define p (test "test"))
 
4
(if (not (string=? p "test"))
 
5
    (error "test failed!"))
 
6
 
 
7
(set! p (test-pconst "test"))
 
8
(if (not (string=? p "test_pconst"))
 
9
    (error "test_pconst failed!"))
 
10
 
 
11
(define f (new-Foo))
 
12
(set! p (Foo-test f "test"))
 
13
(if (not (string=? p "test"))
 
14
    (error "member-test failed!"))
 
15
 
 
16
(set! p (Foo-test-pconst f "test"))
 
17
(if (not (string=? p "test_pconst"))
 
18
    (error "member-test_pconst failed!"))
 
19
 
 
20
(set! p (Foo-test-constm f "test"))
 
21
(if (not (string=? p "test_constmethod"))
 
22
    (error "member-test_constm failed!"))
 
23
 
 
24
(set! p (Foo-test-pconstm f "test"))
 
25
(if (not (string=? p "test_pconstmethod"))
 
26
    (error "member-test_pconstm failed!"))
 
27
 
 
28
(exit 0)