Skip to content

Commit

Permalink
Changed unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdeSV committed Aug 10, 2015
1 parent 4a366aa commit 36bda43
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions std/format.d
Expand Up @@ -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);
Expand Down

0 comments on commit 36bda43

Please sign in to comment.