mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
translate string interpolation back to 2.9 in URITests
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user