generated from filipe1309/shubcogen-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcases.ts
More file actions
66 lines (66 loc) · 1.45 KB
/
cases.ts
File metadata and controls
66 lines (66 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
export default [
{
input: {
arrayOne: [ -1, 5, 10, 20, 28, 3 ],
arrayTwo: [ 26, 134, 135, 15, 17 ]
},
expected: [ 28, 26 ]
},
{
input: { arrayOne: [ -1, 5, 10, 20, 3 ], arrayTwo: [ 26, 134, 135, 15, 17 ] },
expected: [20, 17]
},
{
input: {
arrayOne: [ 10, 0, 20, 25 ],
arrayTwo: [ 1005, 1006, 1014, 1032, 1031 ]
},
expected: [25, 1005]
},
{
input: {
arrayOne: [ 10, 0, 20, 25, 2200 ],
arrayTwo: [ 1005, 1006, 1014, 1032, 1031 ]
},
expected: [25, 1005]
},
{
input: {
arrayOne: [ 10, 0, 20, 25, 2000 ],
arrayTwo: [ 1005, 1006, 1014, 1032, 1031 ]
},
expected: [2000, 1032]
},
{
input: {
arrayOne: [ 240, 124, 86, 111, 2, 84, 954, 27, 89 ],
arrayTwo: [ 1, 3, 954, 19, 8 ]
},
expected: [954, 954]
},
{
input: { arrayOne: [ 0, 20 ], arrayTwo: [ 21, -2 ] },
expected: [20, 21]
},
{
input: {
arrayOne: [ 10, 1000 ],
arrayTwo: [ -1441, -124, -25, 1014, 1500, 660, 410, 245, 530 ]
},
expected: [1000, 1014]
},
{
input: {
arrayOne: [ 10, 1000, 9124, 2142, 59, 24, 596, 591, 124, -123 ],
arrayTwo: [ -1441, -124, -25, 1014, 1500, 660, 410, 245, 530 ]
},
expected: [-123, -124]
},
{
input: {
arrayOne: [ 10, 1000, 9124, 2142, 59, 24, 596, 591, 124, -123, 530 ],
arrayTwo: [ -1441, -124, -25, 1014, 1500, 660, 410, 245, 530 ]
},
expected: [530, 530]
}
];