From c1ec6020a68a64a313d2bd86cf51bc4b2b10951b Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 25 Oct 2013 13:24:05 -0500 Subject: [PATCH] Verify that String#lastIndexOf handles large fromIndex correctly Signed-off-by: Johannes Schindelin --- test/Strings.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Strings.java b/test/Strings.java index 30a85163c9..76815af535 100644 --- a/test/Strings.java +++ b/test/Strings.java @@ -203,6 +203,8 @@ public class Strings { System.getProperty("line.separator").getBytes()))); } + expect("abc".lastIndexOf('b', 100) == 1); + testTrivialPattern(); } }