Skip to content

Commit c74139d

Browse files
committed
fix: Use idup for string handling in non-GC memory allocation tests
1 parent 9eeb012 commit c74139d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/fluentasserts/operations/memory/nonGcMemory.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ version (linux) {
9292
(() @trusted => free(leaked))();
9393

9494
expect(evaluation.result.expected[]).to.equal(`not to allocate non-GC memory`);
95-
expect(evaluation.result.actual[]).to.startWith("allocated ");
96-
expect(evaluation.result.actual[]).to.contain("MB");
95+
expect(evaluation.result.actual[].idup).to.startWith("allocated ");
96+
expect(evaluation.result.actual[].idup).to.contain("MB");
9797
}
9898
}
9999

0 commit comments

Comments
 (0)