summaryrefslogtreecommitdiff
path: root/test/dl
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-11 04:20:35 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-11 04:20:35 +0000
commit2de959db7b827f997a2d0e5c051fa1ebc7f1fba3 (patch)
tree1e78cf7518efaf262586ef8c5c0767f6c210e0af /test/dl
parentaa473577fe647eda0cc044dc1e854d269a4c63d2 (diff)
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
Diffstat (limited to 'test/dl')
-rw-r--r--test/dl/test_cparser.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/dl/test_cparser.rb b/test/dl/test_cparser.rb
new file mode 100644
index 0000000000..3be727a759
--- /dev/null
+++ b/test/dl/test_cparser.rb
@@ -0,0 +1,13 @@
+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