-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.ts
56 lines (52 loc) · 3.35 KB
/
test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import type { ToAsciiArt } from "./solution";
import { Equal, Expect } from "type-testing";
type test_0_actual = ToAsciiArt<" * : * Merry * : * \n Christmas ">;
// ^?
type test_0_expected = [
"░░░░░#░░░█▄░▄█ █▀▀ █▀█ █▀█ █ █ ░░░#░░░░░",
"░░░#░░░#░█ ▀ █ █▀▀ ██▀ ██▀ ▀█▀ ░#░░░#░░░",
"░░░░░#░░░▀ ░░▀ ▀▀▀ ▀ ▀ ▀ ▀ ░▀ ░░░░#░░░░░",
"░░█▀▀ █ █ █▀█ █ █▀▀ ▀█▀ █▄░▄█ █▀█ █▀▀ ░░",
"░░█ ░░█▀█ ██▀ █ ▀▀█ ░█ ░█ ▀ █ █▀█ ▀▀█ ░░",
"░░▀▀▀ ▀ ▀ ▀ ▀ ▀ ▀▀▀ ░▀ ░▀ ░░▀ ▀ ▀ ▀▀▀ ░░",
];
type test_0 = Expect<Equal<test_0_actual, test_0_expected>>;
type test_1_actual = ToAsciiArt<" Happy new \n * : * : * Year * : * : * ">;
// ^?
type test_1_expected = [
"░░█ █ █▀█ █▀█ █▀█ █ █ ░█▄░█ █▀▀ █ ░░█ ░░",
"░░█▀█ █▀█ █▀▀ █▀▀ ▀█▀ ░█ ▀█ █▀▀ █▄▀▄█ ░░",
"░░▀ ▀ ▀ ▀ ▀ ░░▀ ░░░▀ ░░▀ ░▀ ▀▀▀ ▀ ░ ▀ ░░",
"░░░░#░░░#░░░█ █ █▀▀ █▀█ █▀█ ░░░#░░░#░░░░",
"░░#░░░#░░░#░▀█▀ █▀▀ █▀█ ██▀ ░#░░░#░░░#░░",
"░░░░#░░░#░░░░▀ ░▀▀▀ ▀ ▀ ▀ ▀ ░░░#░░░#░░░░",
];
type test_1 = Expect<Equal<test_1_actual, test_1_expected>>;
type test_2_actual = ToAsciiArt<" * : * : * : * : * : * \n Trash \n * : * : * : * : * : * ">;
// ^?
type test_2_expected = [
"░░░░#░░░#░░░#░░░#░░░#░░░",
"░░#░░░#░░░#░░░#░░░#░░░#░",
"░░░░#░░░#░░░#░░░#░░░#░░░",
"░░▀█▀ █▀█ █▀█ █▀▀ █ █ ░░",
"░░░█ ░██▀ █▀█ ▀▀█ █▀█ ░░",
"░░░▀ ░▀ ▀ ▀ ▀ ▀▀▀ ▀ ▀ ░░",
"░░░░#░░░#░░░#░░░#░░░#░░░",
"░░#░░░#░░░#░░░#░░░#░░░#░",
"░░░░#░░░#░░░#░░░#░░░#░░░",
];
type test_2 = Expect<Equal<test_2_actual, test_2_expected>>;
type test_3_actual = ToAsciiArt<" : * : * : * : * : * : * : \n Ecyrbe \n : * : * : * : * : * : * : ">;
// ^?
type test_3_expected = [
"░░#░░░#░░░#░░░#░░░#░░░#░░░#░",
"░░░░#░░░#░░░#░░░#░░░#░░░#░░░",
"░░#░░░#░░░#░░░#░░░#░░░#░░░#░",
"░░█▀▀ █▀▀ █ █ █▀█ █▀▄ █▀▀ ░░",
"░░█▀▀ █ ░░▀█▀ ██▀ █▀▄ █▀▀ ░░",
"░░▀▀▀ ▀▀▀ ░▀ ░▀ ▀ ▀▀ ▀▀▀ ░░",
"░░#░░░#░░░#░░░#░░░#░░░#░░░#░",
"░░░░#░░░#░░░#░░░#░░░#░░░#░░░",
"░░#░░░#░░░#░░░#░░░#░░░#░░░#░",
];
type test_3 = Expect<Equal<test_3_actual, test_3_expected>>;