Opened a bug for this issue:

http://bugzilla.qooxdoo.org/show_bug.cgi?id=534


And added a test tor testrunner.


Fabian Jakobs schrieb:
Dietrich Streifert schrieb:
Hello List,

I'm in need of parsing numbers (integers and floats) and tried this with the qx.util.format.NumberFormat parse method.

The problem is that as soon as one digit is within the string to parse the parse method succeeds. Strings like

"2hastalavista"
"2.3.4.5.6"

are valid strings and converted to the value 2.

I need to parse exact.

Is this behaviour of the parser intended or is this a bug?

Thank you for your help.
This sounds like a bug to me. I can't think of any situation where this is the intended behaviour. Could you open a bug for this and ideally add a test for this to the class "testrunner.test.util.NumberFormat".

Best Fabian



--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to