PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/integers_runme.rb

#
Ruby | 21 lines | 15 code | 2 blank | 4 comment | 10 complexity | c7c09efd77b427f51558c3d8ee77739f MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put script description here.
 4#
 5
 6require 'swig_assert'
 7require 'integers'
 8include Integers
 9
10swig_assert_each_line <<EOF
11signed_char_identity(-3)   == -3
12unsigned_char_identity(5)  == 5
13signed_short_identity(-3)  == -3
14unsigned_short_identity(5) == 5
15signed_int_identity(-3)  == -3
16unsigned_int_identity(5) == 5
17signed_long_identity(-3)  == -3
18unsigned_long_identity(5) == 5
19signed_long_long_identity(-3)  == -3
20unsigned_long_long_identity(5) == 5
21EOF