[TYPO3-core] RFC #15020: Enhancement of t3lib_div::testInt

Nikolas Hagelstein lists at shr-now.de
Thu Jul 8 12:27:54 CEST 2010


Hi,

could you add the following data set to you testcase:

empty string ('').
Largest int (2147483647 or 9223372036854775807)
Largest int +1 (2147483648 or 9223372036854775808)

Testing for integers is a system specific thing e.i.:
On 32 bit system the "largest" integer would be 2147483647 while it would be
9223372036854775807 on 64 bit systems.

Would be nice if we had a distinction  of  cases and could add largest int
and largest int +1 to the test.

One thing: I thing it's common practice to put the dataproviders above the
actuall test.

Cheers,
Nikolas 







More information about the TYPO3-team-core mailing list