import source from 1.3.40
[external/swig.git] / Examples / test-suite / ruby / ignore_parameter_runme.rb
1 #!/usr/bin/env ruby
2 #
3 # Put description here
4 #
5
6
7
8 #
9
10 require 'swig_assert'
11
12 require 'ignore_parameter'
13
14 include Ignore_parameter
15
16 # Global function tests
17 raise RuntimeError unless jaguar(0, 1.0) == "hello"
18 raise RuntimeError unless lotus("foo", 1.0) == 101
19 raise RuntimeError unless tvr("foo", 0) == 8.8
20 raise RuntimeError unless ferrari() == 101
21
22 # Member function tests
23 sc = SportsCars.new
24 raise RuntimeError unless sc.daimler(0, 1.0) == "hello"
25 raise RuntimeError unless sc.astonmartin("foo", 1.0) == 101
26 raise RuntimeError unless sc.bugatti("foo", 0) == 8.8
27 raise RuntimeError unless sc.lamborghini() == 101
28
29 # Constructor tests
30 MiniCooper.new(0, 1.0)
31 MorrisMinor.new("foo", 1.0)
32 FordAnglia.new("foo", 0)
33 AustinAllegro.new()
34