From 74a1d680d5f093ab45b31553bf5f5ccd08d5ae16 Mon Sep 17 00:00:00 2001 From: adamw Date: Mon, 10 Jul 2017 15:18:56 +0200 Subject: URI interpolator readme, more tests --- .../test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/src/test') diff --git a/tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala b/tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala index d7719fd..df26f66 100644 --- a/tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala +++ b/tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala @@ -88,7 +88,13 @@ class UriInterpolatorTests extends FunSuite with Matchers { (uri"http://example.com?x=y&${Map("a" -> None)}", s"http://example.com?x=y"), (uri"http://example.com?x=y&${Map("a" -> Some("b"))}", - s"http://example.com?x=y&a=b") + s"http://example.com?x=y&a=b"), + (uri"http://example.com?x=y&${Seq("a" -> None)}", + s"http://example.com?x=y") + ), + "fragments" -> List( + (uri"http://example.com#$v1", s"http://example.com#$v1"), + (uri"http://example.com#$None", s"http://example.com") ), "everything" -> List( (uri"${"http"}://$v1.$v2.com/$v1/$v2?$v1=$v2&$v3=$v4#$v1", -- cgit v1.2.3