@@ -298,19 +298,19 @@ mod test {
298
298
299
299
// Partial Blocks for Read Allowed:
300
300
// 0b1 [Interpreted: Yes]
301
- assert_eq ! ( EXAMPLE . read_partial_blocks( ) , true ) ;
301
+ assert ! ( EXAMPLE . read_partial_blocks( ) ) ;
302
302
303
303
// Write Block Misalignment:
304
304
// 0b0 [Interpreted: No]
305
- assert_eq ! ( EXAMPLE . write_block_misalignment( ) , false ) ;
305
+ assert ! ( ! EXAMPLE . write_block_misalignment( ) ) ;
306
306
307
307
// Read Block Misalignment:
308
308
// 0b0 [Interpreted: No]
309
- assert_eq ! ( EXAMPLE . read_block_misalignment( ) , false ) ;
309
+ assert ! ( ! EXAMPLE . read_block_misalignment( ) ) ;
310
310
311
311
// DSR Implemented: indicates configurable driver stage integrated on
312
312
// card 0b0 [Interpreted: No]
313
- assert_eq ! ( EXAMPLE . dsr_implemented( ) , false ) ;
313
+ assert ! ( ! EXAMPLE . dsr_implemented( ) ) ;
314
314
315
315
// Device Size: to calculate the card capacity excl. security area
316
316
// ((device size + 1)*device size multiplier*max read data block
@@ -339,7 +339,7 @@ mod test {
339
339
340
340
// Erase Single Block Enabled:
341
341
// 0x1 [Interpreted: Yes]
342
- assert_eq ! ( EXAMPLE . erase_single_block_enabled( ) , true ) ;
342
+ assert ! ( EXAMPLE . erase_single_block_enabled( ) ) ;
343
343
344
344
// Erase Sector Size: size of erasable sector in write blocks
345
345
// 0x1f [Interpreted: 32 blocks]
@@ -351,7 +351,7 @@ mod test {
351
351
352
352
// Write Protect Group Enable:
353
353
// 0x1 [Interpreted: Yes]
354
- assert_eq ! ( EXAMPLE . write_protect_group_enable( ) , true ) ;
354
+ assert ! ( EXAMPLE . write_protect_group_enable( ) ) ;
355
355
356
356
// Write Speed Factor: block program time as multiple of read access time
357
357
// 0x4 [Interpreted: x16]
@@ -363,23 +363,23 @@ mod test {
363
363
364
364
// Partial Blocks for Write Allowed:
365
365
// 0x0 [Interpreted: No]
366
- assert_eq ! ( EXAMPLE . write_partial_blocks( ) , false ) ;
366
+ assert ! ( ! EXAMPLE . write_partial_blocks( ) ) ;
367
367
368
368
// File Format Group:
369
369
// 0b0 [Interpreted: is either Hard Disk with Partition Table/DOS FAT without Partition Table/Universal File Format/Other/Unknown]
370
- assert_eq ! ( EXAMPLE . file_format_group_set( ) , false ) ;
370
+ assert ! ( ! EXAMPLE . file_format_group_set( ) ) ;
371
371
372
372
// Copy Flag:
373
373
// 0b1 [Interpreted: Non-Original]
374
- assert_eq ! ( EXAMPLE . copy_flag_set( ) , true ) ;
374
+ assert ! ( EXAMPLE . copy_flag_set( ) ) ;
375
375
376
376
// Permanent Write Protection:
377
377
// 0b0 [Interpreted: No]
378
- assert_eq ! ( EXAMPLE . permanent_write_protection( ) , false ) ;
378
+ assert ! ( ! EXAMPLE . permanent_write_protection( ) ) ;
379
379
380
380
// Temporary Write Protection:
381
381
// 0b0 [Interpreted: No]
382
- assert_eq ! ( EXAMPLE . temporary_write_protection( ) , false ) ;
382
+ assert ! ( ! EXAMPLE . temporary_write_protection( ) ) ;
383
383
384
384
// File Format:
385
385
// 0x0 [Interpreted: Hard Disk with Partition Table]
@@ -424,19 +424,19 @@ mod test {
424
424
425
425
// Partial Blocks for Read Allowed:
426
426
// 0b1 [Interpreted: Yes]
427
- assert_eq ! ( EXAMPLE . read_partial_blocks( ) , true ) ;
427
+ assert ! ( EXAMPLE . read_partial_blocks( ) ) ;
428
428
429
429
// Write Block Misalignment:
430
430
// 0b0 [Interpreted: No]
431
- assert_eq ! ( EXAMPLE . write_block_misalignment( ) , false ) ;
431
+ assert ! ( ! EXAMPLE . write_block_misalignment( ) ) ;
432
432
433
433
// Read Block Misalignment:
434
434
// 0b0 [Interpreted: No]
435
- assert_eq ! ( EXAMPLE . read_block_misalignment( ) , false ) ;
435
+ assert ! ( ! EXAMPLE . read_block_misalignment( ) ) ;
436
436
437
437
// DSR Implemented: indicates configurable driver stage integrated on card
438
438
// 0b0 [Interpreted: No]
439
- assert_eq ! ( EXAMPLE . dsr_implemented( ) , false ) ;
439
+ assert ! ( ! EXAMPLE . dsr_implemented( ) ) ;
440
440
441
441
// Device Size: to calculate the card capacity excl. security area
442
442
// ((device size + 1)*device size multiplier*max read data block
@@ -465,7 +465,7 @@ mod test {
465
465
466
466
// Erase Single Block Enabled:
467
467
// 0x1 [Interpreted: Yes]
468
- assert_eq ! ( EXAMPLE . erase_single_block_enabled( ) , true ) ;
468
+ assert ! ( EXAMPLE . erase_single_block_enabled( ) ) ;
469
469
470
470
// Erase Sector Size: size of erasable sector in write blocks
471
471
// 0x1f [Interpreted: 32 blocks]
@@ -477,7 +477,7 @@ mod test {
477
477
478
478
// Write Protect Group Enable:
479
479
// 0x0 [Interpreted: No]
480
- assert_eq ! ( EXAMPLE . write_protect_group_enable( ) , false ) ;
480
+ assert ! ( ! EXAMPLE . write_protect_group_enable( ) ) ;
481
481
482
482
// Write Speed Factor: block program time as multiple of read access time
483
483
// 0x5 [Interpreted: x32]
@@ -489,23 +489,23 @@ mod test {
489
489
490
490
// Partial Blocks for Write Allowed:
491
491
// 0x0 [Interpreted: No]
492
- assert_eq ! ( EXAMPLE . write_partial_blocks( ) , false ) ;
492
+ assert ! ( ! EXAMPLE . write_partial_blocks( ) ) ;
493
493
494
494
// File Format Group:
495
495
// 0b0 [Interpreted: is either Hard Disk with Partition Table/DOS FAT without Partition Table/Universal File Format/Other/Unknown]
496
- assert_eq ! ( EXAMPLE . file_format_group_set( ) , false ) ;
496
+ assert ! ( ! EXAMPLE . file_format_group_set( ) ) ;
497
497
498
498
// Copy Flag:
499
499
// 0b0 [Interpreted: Original]
500
- assert_eq ! ( EXAMPLE . copy_flag_set( ) , false ) ;
500
+ assert ! ( ! EXAMPLE . copy_flag_set( ) ) ;
501
501
502
502
// Permanent Write Protection:
503
503
// 0b0 [Interpreted: No]
504
- assert_eq ! ( EXAMPLE . permanent_write_protection( ) , false ) ;
504
+ assert ! ( ! EXAMPLE . permanent_write_protection( ) ) ;
505
505
506
506
// Temporary Write Protection:
507
507
// 0b0 [Interpreted: No]
508
- assert_eq ! ( EXAMPLE . temporary_write_protection( ) , false ) ;
508
+ assert ! ( ! EXAMPLE . temporary_write_protection( ) ) ;
509
509
510
510
// File Format:
511
511
// 0x0 [Interpreted: Hard Disk with Partition Table]
@@ -550,19 +550,19 @@ mod test {
550
550
551
551
// Partial Blocks for Read Allowed:
552
552
// 0b0 [Interpreted: Yes]
553
- assert_eq ! ( EXAMPLE . read_partial_blocks( ) , false ) ;
553
+ assert ! ( ! EXAMPLE . read_partial_blocks( ) ) ;
554
554
555
555
// Write Block Misalignment:
556
556
// 0b0 [Interpreted: No]
557
- assert_eq ! ( EXAMPLE . write_block_misalignment( ) , false ) ;
557
+ assert ! ( ! EXAMPLE . write_block_misalignment( ) ) ;
558
558
559
559
// Read Block Misalignment:
560
560
// 0b0 [Interpreted: No]
561
- assert_eq ! ( EXAMPLE . read_block_misalignment( ) , false ) ;
561
+ assert ! ( ! EXAMPLE . read_block_misalignment( ) ) ;
562
562
563
563
// DSR Implemented: indicates configurable driver stage integrated on card
564
564
// 0b0 [Interpreted: No]
565
- assert_eq ! ( EXAMPLE . dsr_implemented( ) , false ) ;
565
+ assert ! ( ! EXAMPLE . dsr_implemented( ) ) ;
566
566
567
567
// Device Size: to calculate the card capacity excl. security area
568
568
// ((device size + 1)* 512kbytes
@@ -571,7 +571,7 @@ mod test {
571
571
572
572
// Erase Single Block Enabled:
573
573
// 0x1 [Interpreted: Yes]
574
- assert_eq ! ( EXAMPLE . erase_single_block_enabled( ) , true ) ;
574
+ assert ! ( EXAMPLE . erase_single_block_enabled( ) ) ;
575
575
576
576
// Erase Sector Size: size of erasable sector in write blocks
577
577
// 0x7f [Interpreted: 128 blocks]
@@ -583,7 +583,7 @@ mod test {
583
583
584
584
// Write Protect Group Enable:
585
585
// 0x0 [Interpreted: No]
586
- assert_eq ! ( EXAMPLE . write_protect_group_enable( ) , false ) ;
586
+ assert ! ( ! EXAMPLE . write_protect_group_enable( ) ) ;
587
587
588
588
// Write Speed Factor: block program time as multiple of read access time
589
589
// 0x2 [Interpreted: x4]
@@ -595,23 +595,23 @@ mod test {
595
595
596
596
// Partial Blocks for Write Allowed:
597
597
// 0x0 [Interpreted: No]
598
- assert_eq ! ( EXAMPLE . write_partial_blocks( ) , false ) ;
598
+ assert ! ( ! EXAMPLE . write_partial_blocks( ) ) ;
599
599
600
600
// File Format Group:
601
601
// 0b0 [Interpreted: is either Hard Disk with Partition Table/DOS FAT without Partition Table/Universal File Format/Other/Unknown]
602
- assert_eq ! ( EXAMPLE . file_format_group_set( ) , false ) ;
602
+ assert ! ( ! EXAMPLE . file_format_group_set( ) ) ;
603
603
604
604
// Copy Flag:
605
605
// 0b0 [Interpreted: Original]
606
- assert_eq ! ( EXAMPLE . copy_flag_set( ) , false ) ;
606
+ assert ! ( ! EXAMPLE . copy_flag_set( ) ) ;
607
607
608
608
// Permanent Write Protection:
609
609
// 0b0 [Interpreted: No]
610
- assert_eq ! ( EXAMPLE . permanent_write_protection( ) , false ) ;
610
+ assert ! ( ! EXAMPLE . permanent_write_protection( ) ) ;
611
611
612
612
// Temporary Write Protection:
613
613
// 0b0 [Interpreted: No]
614
- assert_eq ! ( EXAMPLE . temporary_write_protection( ) , false ) ;
614
+ assert ! ( ! EXAMPLE . temporary_write_protection( ) ) ;
615
615
616
616
// File Format:
617
617
// 0x0 [Interpreted: Hard Disk with Partition Table]
@@ -656,19 +656,19 @@ mod test {
656
656
657
657
// Partial Blocks for Read Allowed:
658
658
// 0b0 [Interpreted: Yes]
659
- assert_eq ! ( EXAMPLE . read_partial_blocks( ) , false ) ;
659
+ assert ! ( ! EXAMPLE . read_partial_blocks( ) ) ;
660
660
661
661
// Write Block Misalignment:
662
662
// 0b0 [Interpreted: No]
663
- assert_eq ! ( EXAMPLE . write_block_misalignment( ) , false ) ;
663
+ assert ! ( ! EXAMPLE . write_block_misalignment( ) ) ;
664
664
665
665
// Read Block Misalignment:
666
666
// 0b0 [Interpreted: No]
667
- assert_eq ! ( EXAMPLE . read_block_misalignment( ) , false ) ;
667
+ assert ! ( ! EXAMPLE . read_block_misalignment( ) ) ;
668
668
669
669
// DSR Implemented: indicates configurable driver stage integrated on card
670
670
// 0b0 [Interpreted: No]
671
- assert_eq ! ( EXAMPLE . dsr_implemented( ) , false ) ;
671
+ assert ! ( ! EXAMPLE . dsr_implemented( ) ) ;
672
672
673
673
// Device Size: to calculate the card capacity excl. security area
674
674
// ((device size + 1)* 512kbytes
@@ -677,7 +677,7 @@ mod test {
677
677
678
678
// Erase Single Block Enabled:
679
679
// 0x1 [Interpreted: Yes]
680
- assert_eq ! ( EXAMPLE . erase_single_block_enabled( ) , true ) ;
680
+ assert ! ( EXAMPLE . erase_single_block_enabled( ) ) ;
681
681
682
682
// Erase Sector Size: size of erasable sector in write blocks
683
683
// 0x7f [Interpreted: 128 blocks]
@@ -689,7 +689,7 @@ mod test {
689
689
690
690
// Write Protect Group Enable:
691
691
// 0x0 [Interpreted: No]
692
- assert_eq ! ( EXAMPLE . write_protect_group_enable( ) , false ) ;
692
+ assert ! ( ! EXAMPLE . write_protect_group_enable( ) ) ;
693
693
694
694
// Write Speed Factor: block program time as multiple of read access time
695
695
// 0x2 [Interpreted: x4]
@@ -701,23 +701,23 @@ mod test {
701
701
702
702
// Partial Blocks for Write Allowed:
703
703
// 0x0 [Interpreted: No]
704
- assert_eq ! ( EXAMPLE . write_partial_blocks( ) , false ) ;
704
+ assert ! ( ! EXAMPLE . write_partial_blocks( ) ) ;
705
705
706
706
// File Format Group:
707
707
// 0b0 [Interpreted: is either Hard Disk with Partition Table/DOS FAT without Partition Table/Universal File Format/Other/Unknown]
708
- assert_eq ! ( EXAMPLE . file_format_group_set( ) , false ) ;
708
+ assert ! ( ! EXAMPLE . file_format_group_set( ) ) ;
709
709
710
710
// Copy Flag:
711
711
// 0b0 [Interpreted: Original]
712
- assert_eq ! ( EXAMPLE . copy_flag_set( ) , false ) ;
712
+ assert ! ( ! EXAMPLE . copy_flag_set( ) ) ;
713
713
714
714
// Permanent Write Protection:
715
715
// 0b0 [Interpreted: No]
716
- assert_eq ! ( EXAMPLE . permanent_write_protection( ) , false ) ;
716
+ assert ! ( ! EXAMPLE . permanent_write_protection( ) ) ;
717
717
718
718
// Temporary Write Protection:
719
719
// 0b0 [Interpreted: No]
720
- assert_eq ! ( EXAMPLE . temporary_write_protection( ) , false ) ;
720
+ assert ! ( ! EXAMPLE . temporary_write_protection( ) ) ;
721
721
722
722
// File Format:
723
723
// 0x0 [Interpreted: Hard Disk with Partition Table]
0 commit comments