Skip to content

Commit

Permalink
test: empty value parsing allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
amunra committed Jan 29, 2024
1 parent ebfb1e2 commit 7ea2398
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,3 +347,12 @@ fn invalid_ctrl_chars_in_value() {
);
}
}

#[test]
fn empty_value() -> Result<(), ParsingError> {
let input = "http::x=;";
let config = parse_conf_str(input)?;
assert_eq!(config.service(), "http");
assert_eq!(config.get("x"), Some(""));
Ok(())
}

0 comments on commit 7ea2398

Please sign in to comment.