From cdedae5f141378d7b541498c6ac2dc49196d3003 Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Thu, 29 Apr 2004 03:36:47 +0000 Subject: [PATCH] adding test for RFindCharInSet with no explicit offset parameter --- xpcom/tests/TestStrings.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xpcom/tests/TestStrings.cpp b/xpcom/tests/TestStrings.cpp index 27ba2b288c6c..f01dbcde267e 100644 --- a/xpcom/tests/TestStrings.cpp +++ b/xpcom/tests/TestStrings.cpp @@ -576,6 +576,10 @@ PRBool test_rfindcharinset() if (index != kNotFound) return PR_FALSE; + index = buf.RFindCharInSet("h"); + if (index != 7) + return PR_FALSE; + return PR_TRUE; }