blob: 1acc300721cf8d1fb404dcb8a8ff94977c1a687a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { assertEqual, test } from "../testing/mod.ts";
import { color } from "./mod.ts";
import "./example.ts";
test(function singleColor() {
assertEqual(color.red("Hello world"), "[31mHello world[39m");
});
test(function doubleColor() {
assertEqual(color.red.bgBlue("Hello world"), "[44m[31mHello world[39m[49m");
});
|