commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <Luc.Maison...@free.fr>
Subject Re: [MATH] are spaces supposed to be allowed in numbers?
Date Thu, 03 Sep 2009 18:53:35 GMT
sebb a écrit :
> The ComplexFormat parse method allows spaces in Complex numbers, for
> example the following test case works fine:
> 
>     public void testParseSimpleNoDecimals2() {
>         String source = "1 1 2 + 1i";
>         Complex expected = new Complex(112, 1);
>         try {
>             Complex actual = (Complex)complexFormat.parseObject(source);
>             assertEquals(expected, actual);
>         } catch (ParseException ex) {
>             fail(ex.getMessage());
>         }
>     }
> 
> Is this intentional?

I don't think so.

Luc

> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message