[phobos] phobos commit, revision 2292
Brad Roberts
braddr at puremagic.com
Sun Jan 9 12:45:41 PST 2011
On 1/9/2011 12:43 PM, dsource.org wrote:
> phobos commit, revision 2292
>
>
> user: andrei
>
> msg:
> conditionalized unittest for round
>
> http://www.dsource.org/projects/phobos/changeset/2292
>
> paths changed:
> U trunk/phobos/std/math.d
>
Poke.. don beat you to it.. take a look at the resulting code:
version(Posix)
{
unittest
{
version(Posix)
{
assert(lround(0.49) == 0);
assert(lround(0.5) == 1);
assert(lround(1.5) == 2);
}
}
}
More information about the phobos
mailing list