You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Geoff Longman (JIRA)" <ta...@jakarta.apache.org> on 2005/10/19 05:57:45 UTC
[jira] Commented: (TAPESTRY-710) TapestryUtils.split() misses some corner cases.
[ http://issues.apache.org/jira/browse/TAPESTRY-710?page=comments#action_12332439 ]
Geoff Longman commented on TAPESTRY-710:
----------------------------------------
Close it, I misunderstood what you are trying to achieve.
> TapestryUtils.split() misses some corner cases.
> -----------------------------------------------
>
> Key: TAPESTRY-710
> URL: http://issues.apache.org/jira/browse/TAPESTRY-710
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Geoff Longman
> Priority: Minor
>
> add these tests to org.apache.tapestry.TestTapestryUtils
> public void testSplitDelimiterOnly()
> {
> assertListsEqual(new String[] {}, TapestryUtils.split("|", '|'));
> }
>
> public void testSplitDelimitersOnly()
> {
> assertListsEqual(new String[] {}, TapestryUtils.split("||", '|'));
> }
>
> public void testSplitDelimiterOnlyStart()
> {
> assertListsEqual(new String[] {"rocky"}, TapestryUtils.split("|rocky", '|'));
> }
>
> public void testSplitDelimiterOnlyEnd()
> {
> assertListsEqual(new String[] {"rocky"}, TapestryUtils.split("rocky|", '|'));
> }
> They all fail. I'll look at it but not until I get Spindle rolling along again.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org