@@ -62,8 +62,9 @@ fn test_len() {
62
62
assert_eq ! ( e. len( ) , 0 ) ;
63
63
}
64
64
65
- /// ////////////////////////////////////////////////////////////////////////
66
- /// intersect
65
+ ///////////////////////////////////////////////////////////////////////////
66
+ // intersect
67
+
67
68
#[ test]
68
69
fn test_two_empties_do_not_intersect ( ) {
69
70
let e1: EnumSet < Foo > = EnumSet :: new ( ) ;
@@ -106,8 +107,9 @@ fn test_overlapping_intersects() {
106
107
assert ! ( !e1. is_disjoint( & e2) ) ;
107
108
}
108
109
109
- /// ////////////////////////////////////////////////////////////////////////
110
- /// contains and contains_elem
110
+ ///////////////////////////////////////////////////////////////////////////
111
+ // contains and contains_elem
112
+
111
113
#[ test]
112
114
fn test_superset ( ) {
113
115
let mut e1: EnumSet < Foo > = EnumSet :: new ( ) ;
@@ -141,8 +143,9 @@ fn test_contains() {
141
143
assert ! ( !e1. contains( & C ) ) ;
142
144
}
143
145
144
- /// ////////////////////////////////////////////////////////////////////////
145
- /// iter
146
+ ///////////////////////////////////////////////////////////////////////////
147
+ // iter
148
+
146
149
#[ test]
147
150
fn test_iterator ( ) {
148
151
let mut e1: EnumSet < Foo > = EnumSet :: new ( ) ;
@@ -167,8 +170,9 @@ fn test_iterator() {
167
170
assert_eq ! ( elems, [ A , B , C ] ) ;
168
171
}
169
172
170
- /// ////////////////////////////////////////////////////////////////////////
171
- /// operators
173
+ ///////////////////////////////////////////////////////////////////////////
174
+ // operators
175
+
172
176
#[ test]
173
177
fn test_operators ( ) {
174
178
let mut e1: EnumSet < Foo > = EnumSet :: new ( ) ;
@@ -219,76 +223,13 @@ fn test_overflow() {
219
223
#[ derive( Copy , Clone ) ]
220
224
#[ repr( usize ) ]
221
225
enum Bar {
222
- V00 ,
223
- V01 ,
224
- V02 ,
225
- V03 ,
226
- V04 ,
227
- V05 ,
228
- V06 ,
229
- V07 ,
230
- V08 ,
231
- V09 ,
232
- V10 ,
233
- V11 ,
234
- V12 ,
235
- V13 ,
236
- V14 ,
237
- V15 ,
238
- V16 ,
239
- V17 ,
240
- V18 ,
241
- V19 ,
242
- V20 ,
243
- V21 ,
244
- V22 ,
245
- V23 ,
246
- V24 ,
247
- V25 ,
248
- V26 ,
249
- V27 ,
250
- V28 ,
251
- V29 ,
252
- V30 ,
253
- V31 ,
254
- V32 ,
255
- V33 ,
256
- V34 ,
257
- V35 ,
258
- V36 ,
259
- V37 ,
260
- V38 ,
261
- V39 ,
262
- V40 ,
263
- V41 ,
264
- V42 ,
265
- V43 ,
266
- V44 ,
267
- V45 ,
268
- V46 ,
269
- V47 ,
270
- V48 ,
271
- V49 ,
272
- V50 ,
273
- V51 ,
274
- V52 ,
275
- V53 ,
276
- V54 ,
277
- V55 ,
278
- V56 ,
279
- V57 ,
280
- V58 ,
281
- V59 ,
282
- V60 ,
283
- V61 ,
284
- V62 ,
285
- V63 ,
286
- V64 ,
287
- V65 ,
288
- V66 ,
289
- V67 ,
290
- V68 ,
291
- V69 ,
226
+ V00 , V01 , V02 , V03 , V04 , V05 , V06 , V07 , V08 , V09 ,
227
+ V10 , V11 , V12 , V13 , V14 , V15 , V16 , V17 , V18 , V19 ,
228
+ V20 , V21 , V22 , V23 , V24 , V25 , V26 , V27 , V28 , V29 ,
229
+ V30 , V31 , V32 , V33 , V34 , V35 , V36 , V37 , V38 , V39 ,
230
+ V40 , V41 , V42 , V43 , V44 , V45 , V46 , V47 , V48 , V49 ,
231
+ V50 , V51 , V52 , V53 , V54 , V55 , V56 , V57 , V58 , V59 ,
232
+ V60 , V61 , V62 , V63 , V64 , V65 , V66 , V67 , V68 , V69 ,
292
233
}
293
234
294
235
impl CLike for Bar {
0 commit comments