From 63bb17fe09dae5e64b42e20d8f53c5e15af1dec5 Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Thu, 13 Aug 2020 17:08:53 -0400 Subject: [PATCH] explicitly test for urls beginning with single forward slash inside url --- tests/url.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/url.rs b/tests/url.rs index 30b53e9..9331327 100644 --- a/tests/url.rs +++ b/tests/url.rs @@ -122,6 +122,11 @@ test!( "a {\n color:url(;);\n}\n", "a {\n color: url(;);\n}\n" ); +test!( + begins_with_single_forward_slash, + "a {\n color: url(/rust-logo.png);\n}\n", + "a {\n color: url(/rust-logo.png);\n}\n" +); test!( url_uppercase, "a {\n color: URL(http://foo);\n}\n",