Skip to content

Commit

Permalink
Add test for 6448
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Sep 2, 2011
1 parent f98145f commit 5f64c4d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions std/bigint.d
Expand Up @@ -657,3 +657,17 @@ unittest
//w2.clear();
}
}

// 6448
unittest
{
import std.array;
auto w1 = appender!string();
auto w2 = appender!string();

int x = 100;
formattedWrite(w1, "%010d", x);
BigInt bx = x;
formattedWrite(w2, "%010d", bx);
assert(w1.data == w2.data);
}

0 comments on commit 5f64c4d

Please sign in to comment.