@@ -62,8 +62,9 @@ fn test_len() {
6262 assert_eq ! ( e. len( ) , 0 ) ;
6363}
6464
65- /// ////////////////////////////////////////////////////////////////////////
66- /// intersect
65+ ///////////////////////////////////////////////////////////////////////////
66+ // intersect
67+
6768#[ test]
6869fn test_two_empties_do_not_intersect ( ) {
6970 let e1: EnumSet < Foo > = EnumSet :: new ( ) ;
@@ -106,8 +107,9 @@ fn test_overlapping_intersects() {
106107 assert ! ( !e1. is_disjoint( & e2) ) ;
107108}
108109
109- /// ////////////////////////////////////////////////////////////////////////
110- /// contains and contains_elem
110+ ///////////////////////////////////////////////////////////////////////////
111+ // contains and contains_elem
112+
111113#[ test]
112114fn test_superset ( ) {
113115 let mut e1: EnumSet < Foo > = EnumSet :: new ( ) ;
@@ -141,8 +143,9 @@ fn test_contains() {
141143 assert ! ( !e1. contains( & C ) ) ;
142144}
143145
144- /// ////////////////////////////////////////////////////////////////////////
145- /// iter
146+ ///////////////////////////////////////////////////////////////////////////
147+ // iter
148+
146149#[ test]
147150fn test_iterator ( ) {
148151 let mut e1: EnumSet < Foo > = EnumSet :: new ( ) ;
@@ -167,8 +170,9 @@ fn test_iterator() {
167170 assert_eq ! ( elems, [ A , B , C ] ) ;
168171}
169172
170- /// ////////////////////////////////////////////////////////////////////////
171- /// operators
173+ ///////////////////////////////////////////////////////////////////////////
174+ // operators
175+
172176#[ test]
173177fn test_operators ( ) {
174178 let mut e1: EnumSet < Foo > = EnumSet :: new ( ) ;
@@ -219,76 +223,13 @@ fn test_overflow() {
219223 #[ derive( Copy , Clone ) ]
220224 #[ repr( usize ) ]
221225 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 ,
292233 }
293234
294235 impl CLike for Bar {
0 commit comments