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 0f9af3f commit a743c5dCopy full SHA for a743c5d
gix-config/src/parse/nom/tests.rs
@@ -808,8 +808,10 @@ mod key_value_pair {
808
fn nonascii_is_allowed_for_values_but_not_for_keys() {
809
let mut node = ParseNode::SectionHeader;
810
let mut vec = Default::default();
811
- // Verifying `is_ok` because bad keys get ignored
812
- assert!(key_value("你好".as_bytes(), &mut node, &mut vec).is_ok());
+ assert!(
+ key_value("你好".as_bytes(), &mut node, &mut vec).is_ok(),
813
+ "Verifying `is_ok` because bad keys get ignored, the caller parser handles this as error"
814
+ );
815
assert_eq!(vec, into_events(vec![]));
816
817
0 commit comments