Skip to content

Commit 527bf9b

Browse files
committed
remove dict spread tests
1 parent eb60f7d commit 527bf9b

2 files changed

Lines changed: 7 additions & 140 deletions

File tree

tests/tests/src/stdlib/Stdlib_DictTests.mjs

Lines changed: 7 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -293,93 +293,10 @@ Test.run([
293293
"concatAll with empty array returns empty dictionary"
294294
], Object.assign({}), eq, {});
295295

296-
let foo = {
297-
a: 1,
298-
b: 2
299-
};
300-
301-
let baz = {
302-
b: 4,
303-
c: 5
304-
};
305-
306-
let result$4 = Object.assign({}, foo, {
307-
b: 3
308-
}, baz, {
309-
d: 6
310-
});
311-
312-
Test.run([
313-
[
314-
"Stdlib_DictTests.res",
315-
189,
316-
15,
317-
53
318-
],
319-
"dict spread respects overwrite order"
320-
], result$4, eq, {
321-
a: 1,
322-
b: 4,
323-
c: 5,
324-
d: 6
325-
});
326-
327-
Test.run([
328-
[
329-
"Stdlib_DictTests.res",
330-
200,
331-
15,
332-
58
333-
],
334-
"dict spread leaves first source unchanged"
335-
], foo, eq, {
336-
a: 1,
337-
b: 2
338-
});
339-
340-
Test.run([
341-
[
342-
"Stdlib_DictTests.res",
343-
209,
344-
15,
345-
58
346-
],
347-
"dict spread leaves later source unchanged"
348-
], baz, eq, {
349-
b: 4,
350-
c: 5
351-
});
352-
353-
let foo$1 = {
354-
a: 1
355-
};
356-
357-
let result$5 = Object.assign({}, foo$1);
358-
359-
Test.run([
360-
[
361-
"Stdlib_DictTests.res",
362-
223,
363-
22,
364-
55
365-
],
366-
"dict spread clone copies values"
367-
], result$5, eq, foo$1);
368-
369-
Test.run([
370-
[
371-
"Stdlib_DictTests.res",
372-
224,
373-
22,
374-
68
375-
],
376-
"dict spread clone returns a fresh dictionary"
377-
], result$5 === foo$1, eq, false);
378-
379296
Test.run([
380297
[
381298
"Stdlib_DictTests.res",
382-
228,
299+
178,
383300
13,
384301
35
385302
],
@@ -392,7 +309,7 @@ Test.run([
392309
Test.run([
393310
[
394311
"Stdlib_DictTests.res",
395-
234,
312+
184,
396313
13,
397314
34
398315
],
@@ -407,7 +324,7 @@ let dict = {
407324
Test.run([
408325
[
409326
"Stdlib_DictTests.res",
410-
246,
327+
196,
411328
22,
412329
38
413330
],
@@ -417,7 +334,7 @@ Test.run([
417334
Test.run([
418335
[
419336
"Stdlib_DictTests.res",
420-
247,
337+
197,
421338
22,
422339
43
423340
],
@@ -427,7 +344,7 @@ Test.run([
427344
Test.run([
428345
[
429346
"Stdlib_DictTests.res",
430-
248,
347+
198,
431348
22,
432349
37
433350
],
@@ -437,7 +354,7 @@ Test.run([
437354
Test.run([
438355
[
439356
"Stdlib_DictTests.res",
440-
249,
357+
199,
441358
22,
442359
39
443360
],
@@ -447,7 +364,7 @@ Test.run([
447364
Test.run([
448365
[
449366
"Stdlib_DictTests.res",
450-
251,
367+
201,
451368
15,
452369
51
453370
],

tests/tests/src/stdlib/Stdlib_DictTests.res

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -174,56 +174,6 @@ Test.run(
174174
dict{},
175175
)
176176

177-
{
178-
let foo = dict{
179-
"a": 1,
180-
"b": 2,
181-
}
182-
let baz = dict{
183-
"b": 4,
184-
"c": 5,
185-
}
186-
let result = dict{...foo, "b": 3, ...baz, "d": 6}
187-
188-
Test.run(
189-
__POS_OF__("dict spread respects overwrite order"),
190-
result,
191-
eq,
192-
dict{
193-
"a": 1,
194-
"b": 4,
195-
"c": 5,
196-
"d": 6,
197-
},
198-
)
199-
Test.run(
200-
__POS_OF__("dict spread leaves first source unchanged"),
201-
foo,
202-
eq,
203-
dict{
204-
"a": 1,
205-
"b": 2,
206-
},
207-
)
208-
Test.run(
209-
__POS_OF__("dict spread leaves later source unchanged"),
210-
baz,
211-
eq,
212-
dict{
213-
"b": 4,
214-
"c": 5,
215-
},
216-
)
217-
}
218-
219-
{
220-
let foo = dict{"a": 1}
221-
let result = dict{...foo}
222-
223-
Test.run(__POS_OF__("dict spread clone copies values"), result, eq, foo)
224-
Test.run(__POS_OF__("dict spread clone returns a fresh dictionary"), result === foo, eq, false)
225-
}
226-
227177
Test.run(
228178
__POS_OF__("getUnsafe - existing"),
229179
Dict.fromArray([("foo", "bar")])->Dict.getUnsafe("foo"),

0 commit comments

Comments
 (0)