aboutsummaryrefslogtreecommitdiff
path: root/tests/src/test/scala
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-07-09 16:50:22 +0200
committeradamw <adam@warski.org>2017-07-09 16:50:22 +0200
commit2e8f6d8b221f32e5df7663d296317886a43b1cf0 (patch)
tree82ab4df85c0c7d3416da892f0dd45003ed0c06e6 /tests/src/test/scala
parent18ed991eefd4ff541e722808f80a48d47df58a57 (diff)
downloadsttp-2e8f6d8b221f32e5df7663d296317886a43b1cf0.tar.gz
sttp-2e8f6d8b221f32e5df7663d296317886a43b1cf0.tar.bz2
sttp-2e8f6d8b221f32e5df7663d296317886a43b1cf0.zip
More tests
Diffstat (limited to 'tests/src/test/scala')
-rw-r--r--tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala b/tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
index f0eeb1e..4a71163 100644
--- a/tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
+++ b/tests/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
@@ -29,7 +29,10 @@ class UriInterpolatorTests extends FunSuite with Matchers {
(uri"http://$v1.com", s"http://$v1.com"),
(uri"http://$v2.com", s"http://$v2hostEncoded.com"),
(uri"http://$None.example.com", s"http://example.com"),
+ (uri"http://$None.$None.example.com", s"http://example.com"),
(uri"http://${Some("sub")}.example.com", s"http://sub.example.com"),
+ (uri"http://${Some("sub1.sub2")}.example.com",
+ s"http://sub1.sub2.example.com"),
(uri"http://${List("sub1", "sub2")}.example.com",
s"http://sub1.sub2.example.com"),
(uri"http://${List("sub", "example", "com")}", s"http://sub.example.com")