File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
design-a-number-container-system Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ Deno.test("design-a-number-container-system-1", () => {
14
14
});
15
15
Deno.test("design-a-number-container-system-2", () => {
16
16
const nc: NumberContainers = new NumberContainers();
17
- const [targets, args] = [[
17
+
18
+ const targets = [
18
19
"NumberContainers",
19
20
"change",
20
21
"change",
@@ -100015,7 +100016,9 @@ Deno.test("design-a-number-container-system-2", () => {
100015
100016
"find",
100016
100017
"find",
100017
100018
"find",
100018
- ], [
100019
+ ] as const;
100020
+
100021
+ const args = [
100019
100022
[],
100020
100023
[916631618, 1],
100021
100024
[62250878, 1],
@@ -200016,7 +200019,7 @@ Deno.test("design-a-number-container-system-2", () => {
200016
200019
[1],
200017
200020
[1],
200018
200021
[1],
200019
- ]] as const;
200022
+ ] as const;
200020
200023
const results = [
200021
200024
null,
200022
200025
null,
@@ -300019,4 +300022,15 @@ Deno.test("design-a-number-container-system-2", () => {
300019
300022
33375,
300020
300023
33375,
300021
300024
] as const;
300025
+
300026
+ for (let i = 1; i < results.length; i++) {
300027
+ const target = targets[i];
300028
+ const arg = args[i];
300029
+ const result = results[i];
300030
+ const value = Reflect.apply(Reflect.get(nc, target), nc, arg);
300031
+
300032
+ if (result !== null) {
300033
+ assertEquals(result, value);
300034
+ }
300035
+ }
300022
300036
});
You can’t perform that action at this time.
0 commit comments