Skip to content

Commit 1034117

Browse files
committed
add a test
1 parent 59ee0b1 commit 1034117

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mapping.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,12 @@ mod tests {
807807
);
808808
}
809809

810+
#[test]
811+
fn try_parse_r8_headers_invalid() {
812+
let bytes = br#"# {123:"foobar"}"#;
813+
assert!(ProguardRecord::try_parse(bytes).is_err(),);
814+
}
815+
810816
#[test]
811817
fn try_parse_r8_headers() {
812818
let bytes = br#"# {"id":"foobar"}"#;

0 commit comments

Comments
 (0)