From 250836b57a4ec01480e5cf46f0ee9dbf7c0e62fc Mon Sep 17 00:00:00 2001 From: yescallop Date: Sun, 13 Oct 2024 00:27:07 +0800 Subject: [PATCH] Fix test failure --- tests/convert.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/convert.rs b/tests/convert.rs index 20b8038..1842eeb 100644 --- a/tests/convert.rs +++ b/tests/convert.rs @@ -49,13 +49,13 @@ fn convert_error() { let uri_ref = UriRef::parse("rel/ref").unwrap(); assert_eq!( Uri::try_from(uri_ref).unwrap_err().to_string(), - "unexpected character at index 3" + "scheme not present" ); let uri_ref = UriRef::parse("").unwrap(); assert_eq!( Uri::try_from(uri_ref).unwrap_err().to_string(), - "unexpected character at index 0" + "scheme not present" ); let iri = Iri::parse("http://你好.example.com/").unwrap(); @@ -67,7 +67,7 @@ fn convert_error() { let iri_ref = IriRef::parse("réf/rel").unwrap(); assert_eq!( Uri::try_from(iri_ref).unwrap_err().to_string(), - "unexpected character at index 1" + "scheme not present" ); assert_eq!( UriRef::try_from(iri_ref).unwrap_err().to_string(), @@ -75,6 +75,6 @@ fn convert_error() { ); assert_eq!( Iri::try_from(iri_ref).unwrap_err().to_string(), - "unexpected character at index 1" + "scheme not present" ); }