Skip to content

Commit

Permalink
again re-adjust test - should be good enough
Browse files Browse the repository at this point in the history
  • Loading branch information
ymo-sci committed Nov 22, 2024
1 parent ffdb7d1 commit 2d72831
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/kotlin/sirius/kernel/commons/StringsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ class StringsTest {
assertTrue(Strings.isHttpUrl("HTTPS://example.com"))
assertTrue(Strings.isHttpUrl("http://example.com"))
assertTrue(Strings.isHttpUrl("Http://example.com?foo=bar"))
assertTrue(Strings.isHttpUrl("http://example.com?user=foo&password=bar"))
assertTrue(Strings.isHttpUrl("http://example.com?user=foo&password="))
assertTrue(Strings.isHttpUrl("http://user:password@server.com/path"))
assertTrue(Strings.isHttpUrl("http://user@server.com/path"))
assertTrue(Strings.isHttpUrl("https://example.com/my/sample/page"))
assertTrue(Strings.isHttpUrl("http://example.com:8080/my/sample/page"))
assertTrue(Strings.isHttpUrl("http://example.com:8080/my/sample/page?user=foo&password=bar"))
assertFalse(Strings.isHttpUrl("HttpS"))
assertFalse(Strings.isHttpUrl(""))
assertFalse(Strings.isHttpUrl("For testing look at https://example.com"))
Expand Down

0 comments on commit 2d72831

Please sign in to comment.