translate string interpolation back to 2.9 in URITests

This commit is contained in:
Mark Harrah
2013-05-30 22:17:06 -04:00
parent 8aca9d61d0
commit 009ce70fbc
+6 -6
View File
@@ -23,10 +23,10 @@ object URITests extends Properties("URI Tests")
val encoded = "has%20spaces"
val fpURI = filePathURI(decoded)
val directURI = new URI(encoded)
s"filePathURI: $fpURI" |:
s"direct URI: $directURI" |:
s"getPath: ${fpURI.getPath}" |:
s"getRawPath: ${fpURI.getRawPath}" |:
("filePathURI: " +fpURI) |:
("direct URI: " + directURI) |:
("getPath: " + fpURI.getPath) |:
("getRawPath: " + fpURI.getRawPath) |:
(fpURI == directURI) &&
(fpURI.getPath == decoded) &&
(fpURI.getRawPath == encoded)
@@ -36,8 +36,8 @@ object URITests extends Properties("URI Tests")
val s = "/a/b'/has spaces"
val viaPath = filePathURI(s)
val viaFile = (new File(s)).toURI
s"via path: $viaPath" |:
s"via file: $viaFile" |:
("via path: " + viaPath) |:
("via file: " + viaFile) |:
(viaPath == viaFile)
}
}