mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
assert message is converted to string
This commit is contained in:
parent
36bda43f25
commit
9097c7bc0b
1 changed files with 3 additions and 1 deletions
|
@ -2409,8 +2409,10 @@ unittest
|
|||
result ~= c;
|
||||
}
|
||||
|
||||
import std.conv : to;
|
||||
assert(equal(result, "abc12def34"d),
|
||||
"Unexpected result: '%s'"d.algoFormat(result));
|
||||
//Convert to string for assert's message
|
||||
to!string("Unexpected result: '%s'"d.algoFormat(result)));
|
||||
}
|
||||
|
||||
// Issue 8061
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue