mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 23:29:33 +00:00
updates in Username
This commit is contained in:
@@ -35,9 +35,7 @@ class ChatIdentifierTests {
|
|||||||
fun `Cast_from_String_to_Username_is_working_correctly`() {
|
fun `Cast_from_String_to_Username_is_working_correctly`() {
|
||||||
assertEquals(testUsername, testUsername.toUsername().full)
|
assertEquals(testUsername, testUsername.toUsername().full)
|
||||||
|
|
||||||
assertFails("Username creating must fail when trying to create from string which is not starting from @ symbol") {
|
assertEquals(testUsername, testUsername.replace("@", "").toUsername().full)
|
||||||
testUsername.replace("@", "").toUsername().full
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
Reference in New Issue
Block a user