From f5d010e26d83551bf0cde4b4c2309be9d91dfae9 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 27 Jul 2023 11:14:35 +0800 Subject: [PATCH] =?UTF-8?q?HELLO=20UTS=20=E9=80=82=E9=85=8Dnumber=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/Array.uts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uni_modules/uts-tests/utssdk/Array.uts b/uni_modules/uts-tests/utssdk/Array.uts index 5187442..b0eac59 100644 --- a/uni_modules/uts-tests/utssdk/Array.uts +++ b/uni_modules/uts-tests/utssdk/Array.uts @@ -256,7 +256,7 @@ export function testArray(): Result { expect(array1).toEqual([1, 100000, 21, 30, 4]); const array2 = [5, 1, 4, 2, 3]; - array2.sort((a, b):Int => a - b); + array2.sort((a, b):number => a - b); expect(array2).toEqual([1, 2, 3, 4, 5]); // const array3 = [5, "banana", 4, "apple", 3, "cherry", 2, "date", 1]; -- GitLab