|
15 | 15 | it 'returns them in an array' do
|
16 | 16 | input = File.join(test_data_dir, 'file-with-duplicated-keys.strings')
|
17 | 17 |
|
18 |
| - expect(described_class.find_duplicated_keys(file: input)).to eq({ |
19 |
| - 'dup1' => [30, 31], |
20 |
| - 'dup2' => [33, 35], |
21 |
| - 'dup3' => [36, 39], |
22 |
| - 'dup4' => [41, 42], |
23 |
| - '\U0025 key' => [49, 50], |
24 |
| - '\U0026 key' => [52, 54], |
25 |
| - 'key with \"%@\" character' => [60, 61], |
26 |
| - 'key with \"%@\" but diff translations' => [63, 64], |
27 |
| - 'key with multiple \"%@\" escapes \":)\" in it' => [66, 68], |
28 |
| - 'Login to a \"%@\" account' => [67, 69], |
29 |
| - 'key with trailing spaces ' => [76, 77], |
30 |
| - 'key with \"%@\" and = character' => [71, 72], |
31 |
| - 'key with \"%@\" character and equal in translation' => [73, 74], |
32 |
| - 'key repeated more than twice' => [79, 80, 81], |
33 |
| - }) |
| 18 | + expect(described_class.find_duplicated_keys(file: input)).to eq( |
| 19 | + { |
| 20 | + 'dup1' => [30, 31], |
| 21 | + 'dup2' => [33, 35], |
| 22 | + 'dup3' => [36, 39], |
| 23 | + 'dup4' => [41, 42], |
| 24 | + '\U0025 key' => [49, 50], |
| 25 | + '\U0026 key' => [52, 54], |
| 26 | + 'key with \"%@\" character' => [60, 61], |
| 27 | + 'key with \"%@\" but diff translations' => [63, 64], |
| 28 | + 'key with multiple \"%@\" escapes \":)\" in it' => [66, 68], |
| 29 | + 'Login to a \"%@\" account' => [67, 69], |
| 30 | + 'key with trailing spaces ' => [76, 77], |
| 31 | + 'key with \"%@\" and = character' => [71, 72], |
| 32 | + 'key with \"%@\" character and equal in translation' => [73, 74], |
| 33 | + 'key repeated more than twice' => [79, 80, 81] |
| 34 | + } |
| 35 | + ) |
34 | 36 | end
|
35 | 37 | end
|
36 | 38 |
|
|
0 commit comments