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
tenderlove 230ca5ffe5 * 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/trunk@28129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 16:02:48 +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