@@ -24,14 +24,32 @@ def test_short_ctype
24
24
assert_equal ( TYPE_SHORT , parse_ctype ( 'const short' ) )
25
25
assert_equal ( TYPE_SHORT , parse_ctype ( 'short int' ) )
26
26
assert_equal ( TYPE_SHORT , parse_ctype ( 'const short int' ) )
27
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'int short' ) )
28
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'const int short' ) )
27
29
assert_equal ( TYPE_SHORT , parse_ctype ( 'signed short' ) )
28
30
assert_equal ( TYPE_SHORT , parse_ctype ( 'const signed short' ) )
31
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'short signed' ) )
32
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'const short signed' ) )
29
33
assert_equal ( TYPE_SHORT , parse_ctype ( 'signed short int' ) )
30
34
assert_equal ( TYPE_SHORT , parse_ctype ( 'const signed short int' ) )
35
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'signed int short' ) )
36
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'const signed int short' ) )
37
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'int signed short' ) )
38
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'const int signed short' ) )
39
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'int short signed' ) )
40
+ assert_equal ( TYPE_SHORT , parse_ctype ( 'const int short signed' ) )
31
41
assert_equal ( -TYPE_SHORT , parse_ctype ( 'unsigned short' ) )
32
42
assert_equal ( -TYPE_SHORT , parse_ctype ( 'const unsigned short' ) )
33
43
assert_equal ( -TYPE_SHORT , parse_ctype ( 'unsigned short int' ) )
34
44
assert_equal ( -TYPE_SHORT , parse_ctype ( 'const unsigned short int' ) )
45
+ assert_equal ( -TYPE_SHORT , parse_ctype ( 'unsigned int short' ) )
46
+ assert_equal ( -TYPE_SHORT , parse_ctype ( 'const unsigned int short' ) )
47
+ assert_equal ( -TYPE_SHORT , parse_ctype ( 'short int unsigned' ) )
48
+ assert_equal ( -TYPE_SHORT , parse_ctype ( 'const short int unsigned' ) )
49
+ assert_equal ( -TYPE_SHORT , parse_ctype ( 'int unsigned short' ) )
50
+ assert_equal ( -TYPE_SHORT , parse_ctype ( 'const int unsigned short' ) )
51
+ assert_equal ( -TYPE_SHORT , parse_ctype ( 'int short unsigned' ) )
52
+ assert_equal ( -TYPE_SHORT , parse_ctype ( 'const int short unsigned' ) )
35
53
end
36
54
37
55
def test_int_ctype
0 commit comments