mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-07 12:23:14 +00:00
updates in Username
This commit is contained in:
1 parent
1474a07b9e
commit
8cd5659b7b
1 file changed
+1
-3
@@ -35,9 +35,7 @@ class ChatIdentifierTests {
|
||||
fun `Cast_from_String_to_Username_is_working_correctly`() {
|
||||
assertEquals(testUsername, testUsername.toUsername().full)
|
||||
|
||||
assertFails("Username creating must fail when trying to create from string which is not starting from @ symbol") {
|
||||
testUsername.replace("@", "").toUsername().full
|
||||
}
|
||||
assertEquals(testUsername, testUsername.replace("@", "").toUsername().full)
|
||||
}
|
||||
|
||||
@Serializable
|
||||
|
||||
Reference in new issue
Block a user