Skip to content

Instantly share code, notes, and snippets.

@Gavriel770U
Created August 21, 2024 22:35
Show Gist options
  • Save Gavriel770U/14b328035bf01b08bba53b9fb7b8ff8b to your computer and use it in GitHub Desktop.
Save Gavriel770U/14b328035bf01b08bba53b9fb7b8ff8b to your computer and use it in GitHub Desktop.
Zed 35.1 test helper
comb_dict = {
0 : '(none)',
1 : 'A',
2 : 'B',
3 : 'C',
4 : 'D',
5 : 'E',
6 : 'AB',
7 : 'AC',
8 : 'AD',
9 : 'AE',
10 : 'BC',
11 : 'BD',
12 : 'BE',
13 : 'CD',
14 : 'CE',
15 : 'DE',
16 : 'ABC',
17 : 'ABD',
18 : 'ABE',
19 : 'ACD',
20 : 'ACE',
21 : 'ADE',
22 : 'BCD',
23 : 'BCE',
24 : 'BDE',
25 : 'CDE',
26 : 'ABCD',
27 : 'ABCE',
28 : 'ABDE',
29 : 'ACDE',
30 : 'BCDE',
31 : 'ABCDE'
}
res = ''
l = [ 29,20,27,0,31,9,31,1,0,31,1,31,0,31,14,31,0,31,23,29,0,31,20,20 ]
for num in l:
print(num, comb_dict[num])
print(res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment