diff --git a/uni_modules/uts-tests/utssdk/String.uts b/uni_modules/uts-tests/utssdk/String.uts index 8bb71d203359c340674473549dde0a6284d2751e..80c88e147f802ad57d1a6d8d4dc6ee34dde64a57 100644 --- a/uni_modules/uts-tests/utssdk/String.uts +++ b/uni_modules/uts-tests/utssdk/String.uts @@ -275,6 +275,9 @@ export function testString(): Result { expect(str2.substring(3, 8)).toEqual("lo wo"); expect(str2.substring(0, -1)).toEqual(""); expect(str2.substring(0, 20)).toEqual("hello world"); + + var str3 = "aaa"; + expect(str3.substring(10, 1)).toEqual("aa"); }) test("trim", () => { const greeting = ' Hello world! ';