We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da374a9 commit 25f4c88Copy full SHA for 25f4c88
x509-cert/tests/certificate.rs
@@ -469,6 +469,7 @@ fn certificate_arbitrary() {
469
}
470
471
472
+#[cfg(feature = "pem")]
473
#[test]
474
fn decode_cert_bmpstring() {
475
let der_encoded_cert = include_bytes!("examples/windows_bmpstring.pem");
@@ -477,7 +478,8 @@ fn decode_cert_bmpstring() {
477
478
479
let common_name = cert.tbs_certificate().issuer().common_name().unwrap();
480
- if let Some(common_name) = common_name {
481
- println!("common_name: {}", common_name.value());
482
- }
+ assert_eq!(
+ common_name.unwrap().value(),
483
+ "WDKTestCert 混沌,133906716390833193"
484
+ );
485
0 commit comments