Skip to content

Commit

Permalink
Fix std.conv unittest for *nix OS
Browse files Browse the repository at this point in the history
  • Loading branch information
k-hara committed Aug 24, 2011
1 parent 0083007 commit 53842cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/conv.d
Expand Up @@ -2647,7 +2647,8 @@ unittest
assertThrown!ConvException(parse!bool(m));
assert (m == "maybe"); // m shouldn't change on failure

auto b = parse!(const(bool))("true");
auto s = "true";
auto b = parse!(const(bool))(s);
assert(b == true);
}

Expand Down

0 comments on commit 53842cd

Please sign in to comment.