package org.dromara.hutool.core.lang.ansi;

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

public class AnsiEncoderTest {

	@Test
	public void encodeTest(){
		final String encode = AnsiEncoder.encode(Ansi4BitColor.GREEN, "Hutool test");
		Assertions.assertEquals("\u001B[32mHutool test\u001B[0;39m", encode);
	}
}
