aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-11-25 11:10:31 +0100
committeradamw <adam@warski.org>2017-11-25 11:10:31 +0100
commit01b1d2b9dc062ab004f096ffb6fcb175f28d95aa (patch)
tree5c921329e21535e5e0bc0f30d2bc7bf57c036ac9
parent2db11d0cdcc2e6bc0ad2fd321d9c15693ee71876 (diff)
downloadsttp-01b1d2b9dc062ab004f096ffb6fcb175f28d95aa.tar.gz
sttp-01b1d2b9dc062ab004f096ffb6fcb175f28d95aa.tar.bz2
sttp-01b1d2b9dc062ab004f096ffb6fcb175f28d95aa.zip
ipv4 tests
-rw-r--r--core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
index e35a9d6..1d6f838 100644
--- a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
+++ b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
@@ -56,6 +56,10 @@ class UriInterpolatorTests extends FunSuite with Matchers {
"authority with parameters" -> List(
(uri"http://$v1.com?x=$v2", s"http://$v1.com?x=$v2queryEncoded")
),
+ "ipv4" -> List(
+ (uri"http://192.168.1.2/x", s"http://192.168.1.2/x"),
+ (uri"http://${"192.168.1.2"}/x", s"http://192.168.1.2/x")
+ ),
"ports" -> List(
(uri"http://example.com:8080", s"http://example.com:8080"),
(uri"http://example.com:${8080}", s"http://example.com:8080"),