Skip to content

Commit 25f4c88

Browse files
committed
x509-cert: fix test decode_cert_bmpstring
1 parent da374a9 commit 25f4c88

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

x509-cert/tests/certificate.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ fn certificate_arbitrary() {
469469
}
470470
}
471471

472+
#[cfg(feature = "pem")]
472473
#[test]
473474
fn decode_cert_bmpstring() {
474475
let der_encoded_cert = include_bytes!("examples/windows_bmpstring.pem");
@@ -477,7 +478,8 @@ fn decode_cert_bmpstring() {
477478

478479
let common_name = cert.tbs_certificate().issuer().common_name().unwrap();
479480

480-
if let Some(common_name) = common_name {
481-
println!("common_name: {}", common_name.value());
482-
}
481+
assert_eq!(
482+
common_name.unwrap().value(),
483+
"WDKTestCert 混沌,133906716390833193"
484+
);
483485
}

0 commit comments

Comments
 (0)