package com.ruoyi.web.modules.diagnosis.support;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

@DisplayName("MedicalResourceLoginNameGenerator")
class MedicalResourceLoginNameGeneratorTest
{

    @Test
    @DisplayName("拼音首字母+id")
    void generate()
    {
        assertEquals("zsy12", MedicalResourceLoginNameGenerator.generate("张兽医", 12L));
    }

    @Test
    @DisplayName("英文名称")
    void asciiName()
    {
        assertEquals("vet99", MedicalResourceLoginNameGenerator.generate("Vet", 99L));
    }
}
