We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d20201 commit ce47fc6Copy full SHA for ce47fc6
1 file changed
src/test_parser.rs
@@ -867,6 +867,13 @@ fn parse_date() -> Result<(), Error> {
867
Ok(())
868
}
869
870
+#[test]
871
+#[should_panic]
872
+#[cfg(debug_assertions)]
873
+fn parse_invalid_date_start() {
874
+ let _ = Parser::new("7").parse_date();
875
+}
876
+
877
#[test]
878
#[cfg(feature = "parsed-types")]
879
fn parse_display_string() -> Result<(), Error> {
@@ -925,3 +932,10 @@ fn parse_display_string_errors() {
925
932
Err(Error::with_index("invalid UTF-8 in display string", 4))
926
933
);
927
934
935
936
937
938
939
+fn parse_invalid_display_string_start() {
940
+ let _ = Parser::new(r#"""#).parse_display_string();
941
0 commit comments