@@ -317,30 +317,6 @@ fn primitive_eq() {
317
317
assert_eq ! ( DropTracker :: new( ) . track( "abc" . to_owned( ) ) , "abc" ) ;
318
318
assert_eq ! ( DropTracker :: new( ) . track( [ 1 , 2 , 3 ] ) , [ 1 , 2 , 3 ] [ ..] ) ;
319
319
assert_eq ! ( DropTracker :: new( ) . track( vec![ 1 , 2 , 3 ] ) , [ 1 , 2 , 3 ] [ ..] ) ;
320
-
321
- assert_eq ! ( 123i8 , DropTracker :: new( ) . track( 123i8 ) ) ;
322
- assert_eq ! ( 123i16 , DropTracker :: new( ) . track( 123i16 ) ) ;
323
- assert_eq ! ( 123i32 , DropTracker :: new( ) . track( 123i32 ) ) ;
324
- assert_eq ! ( 123i64 , DropTracker :: new( ) . track( 123i64 ) ) ;
325
- assert_eq ! ( 123i128 , DropTracker :: new( ) . track( 123i128 ) ) ;
326
-
327
- assert_eq ! ( 123u8 , DropTracker :: new( ) . track( 123u8 ) ) ;
328
- assert_eq ! ( 123u16 , DropTracker :: new( ) . track( 123u16 ) ) ;
329
- assert_eq ! ( 123u32 , DropTracker :: new( ) . track( 123u32 ) ) ;
330
- assert_eq ! ( 123u64 , DropTracker :: new( ) . track( 123u64 ) ) ;
331
- assert_eq ! ( 123u128 , DropTracker :: new( ) . track( 123u128 ) ) ;
332
-
333
- assert_eq ! ( 123f32 , DropTracker :: new( ) . track_with_value( 'a' , 123f32 ) ) ;
334
- assert_eq ! ( 123f64 , DropTracker :: new( ) . track_with_value( 'b' , 123f64 ) ) ;
335
-
336
- assert_eq ! ( 'x' , DropTracker :: new( ) . track( 'x' ) ) ;
337
- assert_eq ! ( true , DropTracker :: new( ) . track( true ) ) ;
338
- assert_eq ! ( false , DropTracker :: new( ) . track( false ) ) ;
339
- assert_eq ! ( ( ) , DropTracker :: new( ) . track( ( ) ) ) ;
340
- assert_eq ! ( "abc" , DropTracker :: new( ) . track( "abc" ) ) ;
341
- assert_eq ! ( "abc" , DropTracker :: new( ) . track( "abc" . to_owned( ) ) ) ;
342
- assert_eq ! ( [ 1 , 2 , 3 ] [ ..] , DropTracker :: new( ) . track( [ 1 , 2 , 3 ] ) ) ;
343
- assert_eq ! ( [ 1 , 2 , 3 ] [ ..] , DropTracker :: new( ) . track( vec![ 1 , 2 , 3 ] ) ) ;
344
320
}
345
321
346
322
#[ test]
@@ -367,29 +343,6 @@ fn primitive_ne() {
367
343
assert_ne ! ( DropTracker :: new( ) . track( "abc" . to_owned( ) ) , "def" ) ;
368
344
assert_ne ! ( DropTracker :: new( ) . track( [ 1 , 2 , 3 ] ) , [ 4 , 5 , 6 ] [ ..] ) ;
369
345
assert_ne ! ( DropTracker :: new( ) . track( vec![ 1 , 2 , 3 ] ) , [ 4 , 5 , 6 ] [ ..] ) ;
370
-
371
- assert_ne ! ( 100i8 , DropTracker :: new( ) . track( 123i8 ) ) ;
372
- assert_ne ! ( 100i16 , DropTracker :: new( ) . track( 123i16 ) ) ;
373
- assert_ne ! ( 100i32 , DropTracker :: new( ) . track( 123i32 ) ) ;
374
- assert_ne ! ( 100i64 , DropTracker :: new( ) . track( 123i64 ) ) ;
375
- assert_ne ! ( 100i128 , DropTracker :: new( ) . track( 123i128 ) ) ;
376
-
377
- assert_ne ! ( 100u8 , DropTracker :: new( ) . track( 123u8 ) ) ;
378
- assert_ne ! ( 100u16 , DropTracker :: new( ) . track( 123u16 ) ) ;
379
- assert_ne ! ( 100u32 , DropTracker :: new( ) . track( 123u32 ) ) ;
380
- assert_ne ! ( 100u64 , DropTracker :: new( ) . track( 123u64 ) ) ;
381
- assert_ne ! ( 100u128 , DropTracker :: new( ) . track( 123u128 ) ) ;
382
-
383
- assert_ne ! ( 100f32 , DropTracker :: new( ) . track_with_value( 'a' , 123f32 ) ) ;
384
- assert_ne ! ( 100f64 , DropTracker :: new( ) . track_with_value( 'b' , 123f64 ) ) ;
385
-
386
- assert_ne ! ( 'y' , DropTracker :: new( ) . track( 'x' ) ) ;
387
- assert_ne ! ( false , DropTracker :: new( ) . track( true ) ) ;
388
- assert_ne ! ( true , DropTracker :: new( ) . track( false ) ) ;
389
- assert_ne ! ( "def" , DropTracker :: new( ) . track( "abc" ) ) ;
390
- assert_ne ! ( "def" , DropTracker :: new( ) . track( "abc" . to_owned( ) ) ) ;
391
- assert_ne ! ( [ 4 , 5 , 6 ] [ ..] , DropTracker :: new( ) . track( [ 1 , 2 , 3 ] ) ) ;
392
- assert_ne ! ( [ 4 , 5 , 6 ] [ ..] , DropTracker :: new( ) . track( vec![ 1 , 2 , 3 ] ) ) ;
393
346
}
394
347
395
348
#[ test]
@@ -411,24 +364,6 @@ fn primitive_lt() {
411
364
412
365
assert ! ( DropTracker :: new( ) . track( 'x' ) < 'y' ) ;
413
366
assert ! ( DropTracker :: new( ) . track( false ) < true ) ;
414
-
415
- assert ! ( 100i8 < DropTracker :: new( ) . track( 123i8 ) ) ;
416
- assert ! ( 100i16 < DropTracker :: new( ) . track( 123i16 ) ) ;
417
- assert ! ( 100i32 < DropTracker :: new( ) . track( 123i32 ) ) ;
418
- assert ! ( 100i64 < DropTracker :: new( ) . track( 123i64 ) ) ;
419
- assert ! ( 100i128 < DropTracker :: new( ) . track( 123i128 ) ) ;
420
-
421
- assert ! ( 100u8 < DropTracker :: new( ) . track( 123u8 ) ) ;
422
- assert ! ( 100u16 < DropTracker :: new( ) . track( 123u16 ) ) ;
423
- assert ! ( 100u32 < DropTracker :: new( ) . track( 123u32 ) ) ;
424
- assert ! ( 100u64 < DropTracker :: new( ) . track( 123u64 ) ) ;
425
- assert ! ( 100u128 < DropTracker :: new( ) . track( 123u128 ) ) ;
426
-
427
- assert ! ( 100f32 < DropTracker :: new( ) . track_with_value( 'a' , 123f32 ) ) ;
428
- assert ! ( 100f64 < DropTracker :: new( ) . track_with_value( 'b' , 123f64 ) ) ;
429
-
430
- assert ! ( 'w' < DropTracker :: new( ) . track( 'x' ) ) ;
431
- assert ! ( false < DropTracker :: new( ) . track( true ) ) ;
432
367
}
433
368
434
369
#[ test]
@@ -450,22 +385,4 @@ fn primitive_gt() {
450
385
451
386
assert ! ( DropTracker :: new( ) . track( 'x' ) > 'w' ) ;
452
387
assert ! ( DropTracker :: new( ) . track( true ) > false ) ;
453
-
454
- assert ! ( 127i8 > DropTracker :: new( ) . track( 123i8 ) ) ;
455
- assert ! ( 200i16 > DropTracker :: new( ) . track( 123i16 ) ) ;
456
- assert ! ( 200i32 > DropTracker :: new( ) . track( 123i32 ) ) ;
457
- assert ! ( 200i64 > DropTracker :: new( ) . track( 123i64 ) ) ;
458
- assert ! ( 200i128 > DropTracker :: new( ) . track( 123i128 ) ) ;
459
-
460
- assert ! ( 200u8 > DropTracker :: new( ) . track( 123u8 ) ) ;
461
- assert ! ( 200u16 > DropTracker :: new( ) . track( 123u16 ) ) ;
462
- assert ! ( 200u32 > DropTracker :: new( ) . track( 123u32 ) ) ;
463
- assert ! ( 200u64 > DropTracker :: new( ) . track( 123u64 ) ) ;
464
- assert ! ( 200u128 > DropTracker :: new( ) . track( 123u128 ) ) ;
465
-
466
- assert ! ( 200f32 > DropTracker :: new( ) . track_with_value( 'a' , 123f32 ) ) ;
467
- assert ! ( 200f64 > DropTracker :: new( ) . track_with_value( 'b' , 123f64 ) ) ;
468
-
469
- assert ! ( 'y' > DropTracker :: new( ) . track( 'x' ) ) ;
470
- assert ! ( true > DropTracker :: new( ) . track( false ) ) ;
471
388
}
0 commit comments