mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-10-04 18:17:07 -04:00
[db] remove trailing whitespace from fingerprint
Thanks @iNPUTmice for reporting!
This commit is contained in:
2 files changed
+13
-2
No files matched your search
@@ -32,6 +32,17 @@ internal class RepoUriGetterTest {
|
||||
assertEquals("foobar", uri.fingerprint)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testFingerprintWithTrailingWhitespace() {
|
||||
val uri1 = RepoUriGetter.getUri("https://example.org/repo?fingerprint=foobar ")
|
||||
assertEquals("https://example.org/repo", uri1.uri.toString())
|
||||
assertEquals("foobar", uri1.fingerprint)
|
||||
|
||||
val uri2 = RepoUriGetter.getUri("https://example.org/repo?fingerprint=foobar ")
|
||||
assertEquals("https://example.org/repo", uri2.uri.toString())
|
||||
assertEquals("foobar", uri2.fingerprint)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testHash() {
|
||||
val uri = RepoUriGetter.getUri("https://example.org/repo?fingerprint=foobar&test=42#hash")
|
||||
|
||||
Reference in new issue
Block a user