mirror of https://github.com/swig/swig
[ruby] add simple tests for std unordered containers.
This commit is contained in:
parent
43c3ca3767
commit
70740c51d0
|
@ -0,0 +1,5 @@
|
|||
%module cpp11_std_unordered_map
|
||||
|
||||
%include <std_unordered_map.i>
|
||||
|
||||
%template(UnorderedMapIntInt) std::unordered_map<int, int>;
|
|
@ -0,0 +1,7 @@
|
|||
%module cpp11_std_unordered_multimap
|
||||
|
||||
%include <std_pair.i>
|
||||
%include <std_unordered_multimap.i>
|
||||
|
||||
%template(PairIntInt) std::pair<int,int>;
|
||||
%template(UnorderedMultiMapIntInt) std::unordered_multimap<int, int>;
|
|
@ -0,0 +1,5 @@
|
|||
%module cpp11_std_unordered_multiset
|
||||
|
||||
%include <std_unordered_multiset.i>
|
||||
|
||||
%template(UnorderedMultiSetInt) std::unordered_multiset<int>;
|
|
@ -0,0 +1,5 @@
|
|||
%module cpp11_std_unordered_set
|
||||
|
||||
%include <std_unordered_set.i>
|
||||
|
||||
%template(UnorderedSetInt) std::unordered_set<int>;
|
|
@ -35,6 +35,10 @@ CPP11_TEST_CASES = \
|
|||
cpp11_hash_tables \
|
||||
cpp11_shared_ptr_upcast \
|
||||
cpp11_shared_ptr_const \
|
||||
cpp11_std_unordered_map \
|
||||
cpp11_std_unordered_multimap \
|
||||
cpp11_std_unordered_set \
|
||||
cpp11_std_unordered_multiset
|
||||
|
||||
C_TEST_CASES += \
|
||||
li_cstring \
|
||||
|
|
Loading…
Reference in New Issue