1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/dl/test_cparser.rb
yugui 2de959db7b merges r28129 from trunk into ruby_1_9_2.
--
* ext/dl/lib/dl/cparser.rb (parse_ctype): add backwards compatibility
  by supporting "uint" types in the c parser. [ruby-core:29750]
* test/dl/test_cparser.rb: adding a test for "uint" changes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 04:20:35 +00:00

13 lines
215 B
Ruby

require_relative 'test_base'
require 'dl/cparser'
module DL
class TestCParser < TestBase
include DL::CParser
def test_uint_ctype
assert_equal(-DL::TYPE_INT, parse_ctype('uint'))
end
end
end