Skip to content

Commit

Permalink
Add messages to a few asserts to make the auto tester give some detai…
Browse files Browse the repository at this point in the history
…ls about why they're failing on OS X. This is weird--nothing in these unit tests looks at all platform-specific.
  • Loading branch information
dsimcha committed Aug 14, 2011
1 parent 4f7f6c8 commit 994d76f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions std/conv.d
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,13 @@ unittest
{
// positive overflow
Uint un = Uint.max;
assertThrown!ConvOverflowException(to!Sint(un));
assertThrown!ConvOverflowException(to!Sint(un), text(
Sint.stringof, ' ', Uint.stringof, ' ', un));

// negative overflow
Sint sn = -1;
assertThrown!ConvOverflowException(to!Uint(sn));
assertThrown!ConvOverflowException(to!Uint(sn), text(
Sint.stringof, ' ', Uint.stringof, ' ', un));

This comment has been minimized.

Copy link
@kennytm

kennytm Aug 16, 2011

Contributor

This should be ..., sn));.

}
}

Expand Down

1 comment on commit 994d76f

@kennytm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.