mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
9 lines
293 B
Text
9 lines
293 B
Text
'abc'.lastIndexOf('a', 4) = 0
|
|
'abc'.lastIndexOf('b', Infinity) = 1
|
|
'abc'.lastIndexOf('a', -1) = 0
|
|
'abc'.lastIndexOf('a', -Infinity) = 0
|
|
'oracle'.lastIndexOf('u') = -1
|
|
'hello'.lastIndexOf('l') = 3
|
|
'hello'.lastIndexOf('l', 2) = 2
|
|
'hello'.lastIndexOf('l', 3) = 3
|
|
'hello'.lastIndexOf('l', 1) = -1
|