Skip to content

Commit b3f1a72

Browse files
authored
Add test cases about bounded collections with unbounded elements (#23)
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
1 parent b9d8206 commit b3f1a72

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

IDL/maps.idl

+4-2
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,6 @@ struct MapInnerAliasBoundedStringHelperInnerBitsetHelper
11961196
map<Inner_alias_bounded_string_helper, InnerBitsetHelper> var_map_inneraliasboundedstringhelper_innerbitsethelper;
11971197
};
11981198

1199-
1200-
12011199
struct MapInnerAliasBoundedWStringHelperShort
12021200
{
12031201
map<Inner_alias_bounded_wstring_helper, short> var_map_inneraliasboundedwstringhelper_short;
@@ -1332,9 +1330,13 @@ struct MapInnerAliasBoundedWStringHelperInnerBitsetHelper
13321330
struct BoundedSmallMap
13331331
{
13341332
map<long,long,1> var_small_map;
1333+
map<string, long, 5> var_unbounded_string_long_bounded_small_map;
1334+
map<long, string, 5> var_long_unbounded_string_bounded_small_map;
13351335
};
13361336

13371337
struct BoundedLargeMap
13381338
{
13391339
map<long,long,41925> var_large_map;
1340+
map<string, long, 255> var_unbounded_string_long_bounded_large_map;
1341+
map<long, string, 255> var_long_unbounded_string_bounded_large_map;
13401342
};

IDL/sequences.idl

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ struct SequenceBitset
130130
sequence<InnerBitsetHelper> var_sequence_bitset;
131131
};
132132

133-
134-
135133
struct BoundedSmallSequences
136134
{
137135
sequence<short, 1> var_sequence_small;
136+
sequence<string, 5> var_unbounded_string_small_bounded_sequence;
138137
};
139138

140139
struct BoundedBigSequences
141140
{
142141
sequence<short, 41925> var_sequence_big;
142+
sequence<string, 256> var_unbounded_string_large_bounded_sequence;
143143
};
144144

0 commit comments

Comments
 (0)