Skip to content

Commit

Permalink
Add test cases about bounded collections with unbounded elements (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
  • Loading branch information
JLBuenoLopez authored Feb 6, 2024
1 parent b9d8206 commit b3f1a72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions IDL/maps.idl
Original file line number Diff line number Diff line change
Expand Up @@ -1196,8 +1196,6 @@ struct MapInnerAliasBoundedStringHelperInnerBitsetHelper
map<Inner_alias_bounded_string_helper, InnerBitsetHelper> var_map_inneraliasboundedstringhelper_innerbitsethelper;
};



struct MapInnerAliasBoundedWStringHelperShort
{
map<Inner_alias_bounded_wstring_helper, short> var_map_inneraliasboundedwstringhelper_short;
Expand Down Expand Up @@ -1332,9 +1330,13 @@ struct MapInnerAliasBoundedWStringHelperInnerBitsetHelper
struct BoundedSmallMap
{
map<long,long,1> var_small_map;
map<string, long, 5> var_unbounded_string_long_bounded_small_map;
map<long, string, 5> var_long_unbounded_string_bounded_small_map;
};

struct BoundedLargeMap
{
map<long,long,41925> var_large_map;
map<string, long, 255> var_unbounded_string_long_bounded_large_map;
map<long, string, 255> var_long_unbounded_string_bounded_large_map;
};
4 changes: 2 additions & 2 deletions IDL/sequences.idl
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ struct SequenceBitset
sequence<InnerBitsetHelper> var_sequence_bitset;
};



struct BoundedSmallSequences
{
sequence<short, 1> var_sequence_small;
sequence<string, 5> var_unbounded_string_small_bounded_sequence;
};

struct BoundedBigSequences
{
sequence<short, 41925> var_sequence_big;
sequence<string, 256> var_unbounded_string_large_bounded_sequence;
};

0 comments on commit b3f1a72

Please sign in to comment.