Skip to content

Commit

Permalink
Add another test for URL encoded Base64
Browse files Browse the repository at this point in the history
Relates-To #20
  • Loading branch information
saschpe committed Jun 24, 2024
1 parent 6c8793f commit a965788
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kase64/src/commonTest/kotlin/saschpe/kase64/Base64UrlTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ class Base64UrlTest {
"MTIzNDU2Nzg5MC09IUAjJCVeJiooKV8rcXdlcnR5dWlvcFtdOydcLC4vPz48fCI6fXtQYH4".base64UrlDecoded,
)
assertEquals("saschpe", "c2FzY2hwZQ".base64UrlDecoded)
assertEquals(
"""{"aud":"ae.rain.com","exp":1713261313,"iat":1713259513,"iss":"ae.rain.com","rain:jurisdiction":"uae","sub":"58490195-01b9-4dcf-ae28-ae0b20f8fbda"}""",
"eyJhdWQiOiJhZS5yYWluLmNvbSIsImV4cCI6MTcxMzI2MTMxMywiaWF0IjoxNzEzMjU5NTEzLCJpc3MiOiJhZS5yYWluLmNvbSIsInJhaW46anVyaXNkaWN0aW9uIjoidWFlIiwic3ViIjoiNTg0OTAxOTUtMDFiOS00ZGNmLWFlMjgtYWUwYjIwZjhmYmRhIn0".base64UrlDecoded,
)
}

@Test
Expand Down

0 comments on commit a965788

Please sign in to comment.