diff options
Diffstat (limited to 'test/dl/test_cparser.rb')
-rw-r--r-- | test/dl/test_cparser.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/dl/test_cparser.rb b/test/dl/test_cparser.rb index 3be727a759..cea9ac73b0 100644 --- a/test/dl/test_cparser.rb +++ b/test/dl/test_cparser.rb @@ -9,5 +9,25 @@ module DL def test_uint_ctype assert_equal(-DL::TYPE_INT, parse_ctype('uint')) end + + def test_size_t_ctype + assert_equal(DL::TYPE_SIZE_T, parse_ctype("size_t")) + end + + def test_ssize_t_ctype + assert_equal(DL::TYPE_SSIZE_T, parse_ctype("ssize_t")) + end + + def test_ptrdiff_t_ctype + assert_equal(DL::TYPE_PTRDIFF_T, parse_ctype("ptrdiff_t")) + end + + def test_intptr_t_ctype + assert_equal(DL::TYPE_INTPTR_T, parse_ctype("intptr_t")) + end + + def test_uintptr_t_ctype + assert_equal(DL::TYPE_UINTPTR_T, parse_ctype("uintptr_t")) + end end end |