Re: Question about "StringUtils.indexOfAny" functionality/test

2020-08-17 Thread Eric Peters
Thanks Mark. Your explanation makes sense to me now. Happy to report the tests passing in scala now! https://github.com/er1c/scala-apache-commons-lang3/runs/991749187?check_suite_focus=true#step:4:1443 Best Regards, Eric On Mon, Aug 17, 2020 at 12:03 AM Mark Dacek wrote: > The difference is

Re: Question about "StringUtils.indexOfAny" functionality/test

2020-08-17 Thread Mark Dacek
The difference is that the CharSequence... will search for the first occurrence of any of the provided CharSequences. The single CharSequence arg-method will search for the first of any chars in the provided sequence. Regarding the test assertion: it's the index of *any *of the provided characters

Question about "StringUtils.indexOfAny" functionality/test

2020-08-16 Thread Eric Peters
Hi ~ I'm in the process of porting apache commons lang to scala, so it can transpile to javascript/scala native. ( https://github.com/er1c/scala-apache-commons-lang3 FWIW) One test I'm currently investigating is this line: https://github.com/apache/commons-lang/blob/master/src/test/java/org/apac