mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 11:37:24 +03:00
Changed unittests
This commit is contained in:
parent
4a366aad57
commit
36bda43f25
1 changed files with 9 additions and 4 deletions
13
std/format.d
13
std/format.d
|
@ -6403,10 +6403,15 @@ unittest
|
|||
|
||||
r = format("abc"c);
|
||||
assert(r == "abc");
|
||||
r = format("def"w);
|
||||
assert(r == "def");
|
||||
r = format("ghi"d);
|
||||
assert(r == "ghi");
|
||||
|
||||
//format() returns the same type as inputted.
|
||||
wstring wr;
|
||||
wr = format("def"w);
|
||||
assert(wr == "def"w);
|
||||
|
||||
dstring dr;
|
||||
dr = format("ghi"d);
|
||||
assert(dr == "ghi"d);
|
||||
|
||||
void* p = cast(void*)0xDEADBEEF;
|
||||
r = format("%s", p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue