Commit 1795b974 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Add tests for those new cases

parent 49a79482
......@@ -18,5 +18,9 @@ class UserAvatarHelperTest {
assert(UserAvatarHelper.getUsernameInitials("Foo.bar") == "FB")
assert(UserAvatarHelper.getUsernameInitials("Foobar.bar") == "FB")
assert(UserAvatarHelper.getUsernameInitials("Foobar.bar.zab") == "FZ")
assert(UserAvatarHelper.getUsernameInitials("..") == "..")
assert(UserAvatarHelper.getUsernameInitials("...") == "..")
assert(UserAvatarHelper.getUsernameInitials(".Foo.") == ".F")
assert(UserAvatarHelper.getUsernameInitials("Foo..") == "FO")
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment