package com.easyagents.skill.util;

import com.easyagents.skill.model.SkillResourceKind;
import org.junit.Assert;
import org.junit.Test;

/**
 * {@link SkillResources} 规范存储表示测试。
 */
public class SkillResourcesTest {

    /**
     * HTML 的短扩展名与长扩展名都应作为严格 UTF-8 文本处理。
     */
    @Test
    public void recognizeBothHtmlExtensionsAsText() {
        Assert.assertTrue(SkillResources.isText(
                "references/page.htm", SkillResourceKind.REFERENCE, "application/octet-stream"));
        Assert.assertTrue(SkillResources.isText(
                "references/page.html", SkillResourceKind.REFERENCE, "application/octet-stream"));
    }
}
