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

« back to all changes in this revision

Viewing changes to Examples/test-suite/php/primitive_ref_runme.php

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-11-15 14:00:28 UTC
  • mfrom: (1.2.9 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091115140028-me7amr2rie8zz1xn
Tags: 1.3.40-2ubuntu1
* Merge from Debian testing (LP: #356529), remaining changes:
  - Drop libchicken-dev from the build-depends (it's in universe)
  - Remove Pike from package description and from configure flags
  - drop "--without-mzscheme", we don't have it in our build-depends
  - use php-config5
  - Clean Runtime/ as well.
  - debian/rules (clean): Remove Lib/ocaml/swigp4.ml.
* debian/rules: Remove hardcoded python version.
* Remove upper limit for python from Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
require "tests.php";
 
4
require "primitive_ref.php";
 
5
 
 
6
check::equal(ref_over(3), 3, "ref_over failed");
 
7
 
 
8
check::equal(ref_int(3), 3, "ref_int failed");
 
9
check::equal(ref_uint(3), 3, "ref_uint failed");
 
10
check::equal(ref_short(3), 3, "ref_short failed");
 
11
check::equal(ref_ushort(3), 3, "ref_ushort failed");
 
12
check::equal(ref_long(3), 3, "ref_long failed");
 
13
check::equal(ref_ulong(3), 3, "ref_ulong failed");
 
14
check::equal(ref_schar(3), 3, "ref_schar failed");
 
15
check::equal(ref_uchar(3), 3, "ref_uchar failed");
 
16
check::equal(ref_bool(true), true, "ref_bool failed");
 
17
check::equal(ref_float(3.5), 3.5, "ref_float failed");
 
18
check::equal(ref_double(3.5), 3.5, "ref_double failed");
 
19
check::equal(ref_char('x'), 'x', "ref_char failed");
 
20
//check::equal(ref_longlong(0x123456789ABCDEF0), 0x123456789ABCDEF0, "ref_longlong failed");
 
21
//check::equal(ref_ulonglong(0xF23456789ABCDEF0), 0xF23456789ABCDEF0, "ref_ulonglong failed");
 
22
printf("TODO: long long and unsigned long long const reference typemaps\n");
 
23
 
 
24
check::done();
 
25
?>