Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 3c53e27

Browse files
ibuclawdlang-bot
authored andcommitted
test_hash: Remove hashOf tests for complex types
1 parent 728f1d9 commit 3c53e27

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

test/hash/src/test_hash.d

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,9 @@ void pr2243()
338338
enum Bar vsexpr = Bar();
339339
enum int[int] aaexpr = [99:2, 12:6, 45:4];
340340
enum Gun eexpr = Gun.A;
341-
enum cdouble cexpr = 7+4i;
342341
enum Foo[] staexpr = [Foo(), Foo(), Foo()];
343342
enum Bar[] vsaexpr = [Bar(), Bar(), Bar()];
344343
enum realexpr = 7.88;
345-
enum raexpr = [8.99L+86i, 3.12L+99i, 5.66L+12i];
346344
enum nullexpr = null;
347345
enum plstr = Plain();
348346
enum plarrstr = [Plain(), Plain(), Plain()];
@@ -366,7 +364,6 @@ void pr2243()
366364
enum h10 = vsexpr.hashOf();
367365
enum h11 = aaexpr.hashOf();
368366
enum h12 = eexpr.hashOf();
369-
enum h13 = cexpr.hashOf();
370367
enum h14 = hashOf(new Boo);
371368
enum h15 = staexpr.hashOf();
372369
enum h16 = hashOf([new Boo, new Boo, new Boo]);
@@ -387,7 +384,6 @@ void pr2243()
387384
auto h27 = ptrexpr.hashOf();
388385

389386
enum h28 = realexpr.hashOf();
390-
enum h29 = raexpr.hashOf();
391387
enum h30 = nullexpr.hashOf();
392388
enum h31 = plstr.hashOf();
393389
enum h32 = plarrstr.hashOf();
@@ -405,7 +401,6 @@ void pr2243()
405401
auto v10 = vsexpr;
406402
auto v11 = aaexpr;
407403
auto v12 = eexpr;
408-
auto v13 = cexpr;
409404
auto v14 = new Boo;
410405
auto v15 = staexpr;
411406
auto v16 = [new Boo, new Boo, new Boo];
@@ -427,7 +422,6 @@ void pr2243()
427422
auto v26 = dgexpr;
428423
auto v27 = ptrexpr;
429424
auto v28 = realexpr;
430-
auto v29 = raexpr;
431425

432426
//runtime hashes
433427
auto rth1 = hashOf(v1);
@@ -442,7 +436,6 @@ void pr2243()
442436
auto rth10 = hashOf(v10);
443437
auto rth11 = hashOf(v11);
444438
auto rth12 = hashOf(v12);
445-
auto rth13 = hashOf(v13);
446439
auto rth14 = hashOf(v14);
447440
auto rth15 = hashOf(v15);
448441
auto rth16 = hashOf(v16);
@@ -460,7 +453,6 @@ void pr2243()
460453
auto rth26 = hashOf(v26);
461454
auto rth27 = hashOf(v27);
462455
auto rth28 = hashOf(v28);
463-
auto rth29 = hashOf(v29);
464456

465457
auto rth31 = hashOf(v31);
466458
auto rth32 = hashOf(v32);
@@ -478,7 +470,6 @@ void pr2243()
478470
assert(h10 == rth10);
479471
assert(h11 == rth11);
480472
assert(h12 == rth12);
481-
assert(h13 == rth13);
482473
assert(h14 == rth14);
483474
assert(h15 == rth15);
484475
assert(h16 == rth16);
@@ -493,8 +484,7 @@ void pr2243()
493484
assert(h25 == rth25);
494485
assert(h26 == rth26);
495486
assert(h27 == rth27);
496-
assert(h28 == rth28);
497-
assert(h29 == rth29);*/
487+
assert(h28 == rth28);*/
498488
assert(h30 == rth30);
499489
assert(h31 == rth31);
500490
assert(h32 == rth32);
@@ -520,7 +510,6 @@ void pr2243()
520510
auto tih10 = tiHashOf(v10);
521511
auto tih11 = tiHashOf(v11);
522512
auto tih12 = tiHashOf(v12);
523-
auto tih13 = tiHashOf(v13);
524513
auto tih14 = tiHashOf(v14);
525514
auto tih15 = tiHashOf(v15);
526515
auto tih16 = tiHashOf(v16);
@@ -536,7 +525,6 @@ void pr2243()
536525
auto tih26 = tiHashOf(v26);
537526
auto tih27 = tiHashOf(v27);
538527
auto tih28 = tiHashOf(v28);
539-
auto tih29 = tiHashOf(v29);
540528
auto tih30 = tiHashOf(v30);
541529
auto tih31 = tiHashOf(v31);
542530
auto tih32 = tiHashOf(v32);
@@ -554,7 +542,6 @@ void pr2243()
554542
//assert(tih10 == rth10); // need compiler-generated __xtoHash changes
555543
assert(tih11 == rth11);
556544
assert(tih12 == rth12);
557-
assert(tih13 == rth13);
558545
assert(tih14 == rth14);
559546
assert(tih15 == rth15);
560547
assert(tih16 == rth16);
@@ -570,7 +557,6 @@ void pr2243()
570557
assert(tih26 == rth26);
571558
assert(tih27 == rth27);
572559
assert(tih28 == rth28);
573-
assert(tih29 == rth29);
574560
assert(tih30 == rth30);
575561
assert(tih31 == rth31);
576562
assert(tih32 == rth32);

0 commit comments

Comments
 (0)