Skip to content

Commit 9ac2b85

Browse files
committed
Add sorting golden file case
1 parent 41b7664 commit 9ac2b85

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

tests/testdata/static_sort.golden

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
now v 16:00
2+
Local : Sat 24 Aug 1985 14:00 |
3+
▒▒▒▒▒▒██████████████████|███████████▒▒▒▒▒▒▒▒▒▒▒▒
4+
Berlin : Sat 24 Aug 1985 16:00 |
5+
▒▒▒▒▒▒████████████████████████|█████▒▒▒▒▒▒▒▒▒▒▒▒
6+
New York: Sat 24 Aug 1985 10:00 |
7+
▒▒▒▒▒▒██████|███████████████████████▒▒▒▒▒▒▒▒▒▒▒▒
8+
Shanghai: Sat 24 Aug 1985 22:00 |
9+
████████████████████████▒▒▒▒▒▒▒▒▒▒▒▒| ▒▒▒▒▒▒██████
10+
Sydney : Sun 25 Aug 1985 00:00 |
11+
██████████████████▒▒▒▒▒▒▒▒▒▒▒▒ | ▒▒▒▒▒▒████████████

tests/testdata/static_sort.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"config_version": "1.0",
3+
"timezones": [
4+
{
5+
"Name": "New York",
6+
"TZ": "America/New_York"
7+
},
8+
{
9+
"Name": "Berlin",
10+
"TZ": "Europe/Berlin"
11+
},
12+
{
13+
"Name": "Shanghai",
14+
"TZ": "Asia/Shanghai"
15+
},
16+
{
17+
"Name": "Sydney",
18+
"TZ": "Australia/Sydney"
19+
}
20+
],
21+
"style": {
22+
"symbols": "rectangles",
23+
"colorize": false,
24+
"day_segments": {
25+
"morning": 6,
26+
"day": 8,
27+
"evening": 18,
28+
"night": 22
29+
},
30+
"coloring": {
31+
"StaticColorMorning": "red",
32+
"StaticColorDay": "yellow",
33+
"StaticColorEvening": "red",
34+
"StaticColorNight": "blue",
35+
"StaticColorForeground": "",
36+
"DynamicColorMorning": "red",
37+
"DynamicColorDay": "yellow",
38+
"DynamicColorEvening": "red",
39+
"DynamicColorNight": "blue",
40+
"DynamicColorForeground": "",
41+
"DynamicColorBackground": ""
42+
}
43+
},
44+
"tics": false,
45+
"stretch": true,
46+
"hours12": false,
47+
"live": false,
48+
"sorting": "name",
49+
"sort_local_top": true
50+
}

0 commit comments

Comments
 (0)