/trunk/Examples/test-suite/ruby/integers_runme.rb
Ruby | 21 lines | 15 code | 2 blank | 4 comment | 10 complexity | c7c09efd77b427f51558c3d8ee77739f MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- #!/usr/bin/env ruby
- #
- # Put script description here.
- #
- require 'swig_assert'
- require 'integers'
- include Integers
- swig_assert_each_line <<EOF
- signed_char_identity(-3) == -3
- unsigned_char_identity(5) == 5
- signed_short_identity(-3) == -3
- unsigned_short_identity(5) == 5
- signed_int_identity(-3) == -3
- unsigned_int_identity(5) == 5
- signed_long_identity(-3) == -3
- unsigned_long_identity(5) == 5
- signed_long_long_identity(-3) == -3
- unsigned_long_long_identity(5) == 5
- EOF