You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let alt_result = iter.map(|f| format!("{f:#}")).collect::<Vec<_>>();
430
-
assert_eq!(
431
-
alt_sample, alt_result,
433
+
pretty_assert_eq!(
434
+
alt_sample,
435
+
alt_result,
432
436
"Significant values, alternative formatting ({:08b})",
433
437
byte
434
438
);
435
439
436
440
let result = CharacteristicsExtension1(0).reserved().count();
437
-
assert_eq!(0, result,"Reserved fields");
441
+
pretty_assert_eq!(0, result,"Reserved fields");
438
442
}
439
443
#[test]
440
444
fncharacteristics_extension2(){
@@ -444,21 +448,23 @@ mod tests {
444
448
.iter()
445
449
.filter_map(|f| if f.is_set{Some(*f.position)}else{None})
446
450
.collect::<Vec<_>>();
447
-
assert_eq!(sample, result,"Positions");
451
+
pretty_assert_eq!(sample, result,"Positions");
448
452
449
453
let short_sample = vec!["UEFI is supported","System is a virtual machine"];
450
454
let long_sample = vec!["UEFI is supported","SMBIOS table describes a virtual machine. (If this bit is not set, no inference can be made about the virtuality of the system.)"];
451
455
let byte = 0b0001_1000;
452
456
let iter = CharacteristicsExtension2(byte).significants();
453
457
let result = iter.map(|f| format!("{f}")).collect::<Vec<_>>();
0 commit comments