|
1 |
| -" |
2 |
| -" Version: 1.0.0 |
3 |
| -" |
4 |
| - |
5 |
| -Before: |
6 |
| - unlet! input expected |
7 |
| - |
8 |
| -Execute (a single letter): |
9 |
| - let input = {'1': ['A']} |
10 |
| - let expected = {'a': 1} |
11 |
| - AssertEqual expected, Transform(input) |
| 1 | +Execute (single letter): |
| 2 | + let g:legacy = {'1': ['A']} |
| 3 | + let g:expected = {'a': 1} |
| 4 | + AssertEqual g:expected, Transform(g:legacy) |
12 | 5 |
|
13 | 6 | Execute (single score with multiple letters):
|
14 |
| - let input = {'1': ['A', 'E', 'I', 'O', 'U']} |
15 |
| - let expected = {'a': 1, 'e': 1, 'i': 1, 'u': 1, 'o': 1} |
16 |
| - AssertEqual expected, Transform(input) |
| 7 | + let g:legacy = {'1': ['A', 'E', 'I', 'O', 'U']} |
| 8 | + let g:expected = {'a': 1, 'e': 1, 'i': 1, 'u': 1, 'o': 1} |
| 9 | + AssertEqual g:expected, Transform(g:legacy) |
17 | 10 |
|
18 | 11 | Execute (multiple scores with multiple letters):
|
19 |
| - let input = {'1': ['A', 'E'], '2': ['D', 'G']} |
20 |
| - let expected = {'a': 1, 'd': 2, 'e': 1, 'g': 2} |
21 |
| - AssertEqual expected, Transform(input) |
| 12 | + let g:legacy = { |
| 13 | + \ '1': ['A', 'E'], |
| 14 | + \ '2': ['D', 'G']} |
| 15 | + let g:expected = {'a': 1, 'd': 2, 'e': 1, 'g': 2} |
| 16 | + AssertEqual g:expected, Transform(g:legacy) |
22 | 17 |
|
23 | 18 | Execute (multiple scores with differing numbers of letters):
|
24 |
| - let input = {'1': ['A', 'E', 'I', 'O', 'U', 'L', 'N', 'R', 'S', 'T'], '2': ['D', 'G'], '3': ['B', 'C', 'M', 'P'], '4': ['F', 'H', 'V', 'W', 'Y'], '5': ['K'], '8': ['J', 'X'], '10': ['Q', 'Z']} |
25 |
| - let expected = {'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10} |
26 |
| - AssertEqual expected, Transform(input) |
27 |
| - |
| 19 | + let g:legacy = { |
| 20 | + \ '1': ['A', 'E', 'I', 'O', 'U', 'L', 'N', 'R', 'S', 'T'], |
| 21 | + \ '2': ['D', 'G'], '3': ['B', 'C', 'M', 'P'], |
| 22 | + \ '4': ['F', 'H', 'V', 'W', 'Y'], |
| 23 | + \ '5': ['K'], |
| 24 | + \ '8': ['J', 'X'], |
| 25 | + \ '10': ['Q', 'Z']} |
| 26 | + let g:expected = { |
| 27 | + \ 'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, |
| 28 | + \ 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, |
| 29 | + \ 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, |
| 30 | + \ 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10} |
| 31 | + AssertEqual g:expected, Transform(g:legacy) |
0 commit comments