[phobos] Commit 1717 broke Phobos unittests

Andrei Alexandrescu andrei at erdani.com
Sat Aug 7 23:33:04 PDT 2010


OK, thanks. Just committed a fix.

Andrei

On 08/06/2010 08:25 AM, Don Clugston wrote:
> conv.d, in the parse function for floating point numbers:
> Target parse(Target, Source)(ref Source p) if (isInputRange!Source&&
> /*!isSomeString!Source&&  */isFloatingPoint!Target)
>
> The offending line is line 1360:
> enforce(anydigits);
>
> This is wrong; it should be throwing ConvError. This makes the
> unittests in line 2257, 2312, 2380 fail.
>
> In fact, most of the other uses of enforce() in this function should
> probably be throwing a ConvError.
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos


More information about the phobos mailing list