Conditions | 1 |
Paths | 1 |
Total Lines | 94 |
Code Lines | 92 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
1 | module.exports = class TestCase { |
||
2 | static geezNumberTestDataProvider() { |
||
3 | return [ |
||
4 | [1, '፩'], |
||
5 | [10, '፲'], |
||
6 | [100, '፻'], |
||
7 | [1000, '፲፻'], |
||
8 | [10000, '፼'], // (እልፍ) |
||
9 | [100000, '፲፼'], // (አእላፍ) |
||
10 | [1000000, '፻፼'], // (አእላፋት) |
||
11 | [10000000, '፲፻፼'], // (ትእልፊት) |
||
12 | [100000000, '፼፼'], // (ትእልፊታት) |
||
13 | [1000000000, '፲፼፼'], |
||
14 | [10000000000, '፻፼፼'], |
||
15 | [100000000000, '፲፻፼፼'], // (ምእልፊት) |
||
16 | [1000000000000, '፼፼፼'], // (ምእልፊታት) |
||
17 | [100010000, '፼፩፼'], |
||
18 | [100100000, '፼፲፼'], |
||
19 | [100200000, '፼፳፼'], |
||
20 | [100110000, '፼፲፩፼'], |
||
21 | [1, '፩'], |
||
22 | [11, '፲፩'], |
||
23 | [111, '፻፲፩'], |
||
24 | [1111, '፲፩፻፲፩'], |
||
25 | [11111, '፼፲፩፻፲፩'], |
||
26 | [111111, '፲፩፼፲፩፻፲፩'], |
||
27 | [1111111, '፻፲፩፼፲፩፻፲፩'], |
||
28 | [11111111, '፲፩፻፲፩፼፲፩፻፲፩'], |
||
29 | [111111111, '፼፲፩፻፲፩፼፲፩፻፲፩'], |
||
30 | [1111111111, '፲፩፼፲፩፻፲፩፼፲፩፻፲፩'], |
||
31 | [11111111111, '፻፲፩፼፲፩፻፲፩፼፲፩፻፲፩'], |
||
32 | [111111111111, '፲፩፻፲፩፼፲፩፻፲፩፼፲፩፻፲፩'], |
||
33 | [1111111111111, '፼፲፩፻፲፩፼፲፩፻፲፩፼፲፩፻፲፩'], |
||
34 | [1, '፩'], |
||
35 | [12, '፲፪'], |
||
36 | [123, '፻፳፫'], |
||
37 | [1234, '፲፪፻፴፬'], |
||
38 | [12345, '፼፳፫፻፵፭'], |
||
39 | [7654321, '፯፻፷፭፼፵፫፻፳፩'], |
||
40 | [17654321, '፲፯፻፷፭፼፵፫፻፳፩'], |
||
41 | [51615131, '፶፩፻፷፩፼፶፩፻፴፩'], |
||
42 | [15161513, '፲፭፻፲፮፼፲፭፻፲፫'], |
||
43 | [10101011, '፲፻፲፼፲፻፲፩'], |
||
44 | [101, '፻፩'], |
||
45 | [1001, '፲፻፩'], |
||
46 | [1010, '፲፻፲'], |
||
47 | [1011, '፲፻፲፩'], |
||
48 | [1100, '፲፩፻'], |
||
49 | [1101, '፲፩፻፩'], |
||
50 | [1111, '፲፩፻፲፩'], |
||
51 | [10001, '፼፩'], |
||
52 | [10010, '፼፲'], |
||
53 | [10100, '፼፻'], |
||
54 | [10101, '፼፻፩'], |
||
55 | [10110, '፼፻፲'], |
||
56 | [10111, '፼፻፲፩'], |
||
57 | [100001, '፲፼፩'], |
||
58 | [100010, '፲፼፲'], |
||
59 | [100011, '፲፼፲፩'], |
||
60 | [100100, '፲፼፻'], |
||
61 | [101010, '፲፼፲፻፲'], |
||
62 | [1000001, '፻፼፩'], |
||
63 | [1000101, '፻፼፻፩'], |
||
64 | [1000100, '፻፼፻'], |
||
65 | [1010000, '፻፩፼'], |
||
66 | [1010001, '፻፩፼፩'], |
||
67 | [1100001, '፻፲፼፩'], |
||
68 | [1010101, '፻፩፼፻፩'], |
||
69 | [101010101, '፼፻፩፼፻፩'], |
||
70 | [100010000, '፼፩፼'], |
||
71 | [100010100, '፼፩፼፻'], |
||
72 | [101010100, '፼፻፩፼፻'], |
||
73 | [3, '፫'], |
||
74 | [30, '፴'], |
||
75 | [33, '፴፫'], |
||
76 | [303, '፫፻፫'], |
||
77 | [3003, '፴፻፫'], |
||
78 | [3030, '፴፻፴'], |
||
79 | [3033, '፴፻፴፫'], |
||
80 | [3300, '፴፫፻'], |
||
81 | [3303, '፴፫፻፫'], |
||
82 | [3333, '፴፫፻፴፫'], |
||
83 | [30003, '፫፼፫'], |
||
84 | [30303, '፫፼፫፻፫'], |
||
85 | [300003, '፴፼፫'], |
||
86 | [303030, '፴፼፴፻፴'], |
||
87 | [3000003, '፫፻፼፫'], |
||
88 | [3000303, '፫፻፼፫፻፫'], |
||
89 | [3030003, '፫፻፫፼፫'], |
||
90 | [3300003, '፫፻፴፼፫'], |
||
91 | [3030303, '፫፻፫፼፫፻፫'], |
||
92 | [303030303, '፫፼፫፻፫፼፫፻፫'], |
||
93 | [333333333, '፫፼፴፫፻፴፫፼፴፫፻፴፫'], |
||
94 | ]; |
||
95 | } |
||
96 | |||
112 |