package com.ponzischeme89.memby.ui

import org.junit.Assert.assertEquals
import org.junit.Test

class ProfileInitialsTest {
    @Test
    fun `uses camel case capitals for compact usernames`() {
        assertEquals("AV", profileInitials("AlwynV"))
        assertEquals("MC", profileInitials("MattC"))
    }

    @Test
    fun `uses word initials and safe short fallbacks`() {
        assertEquals("MC", profileInitials("Matt Cohen"))
        assertEquals("AL", profileInitials("alwyn"))
        assertEquals("?", profileInitials("  "))
    }
}
