From 4d91ff312c3e224d985d93498f7f2c20e308ec9a Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 11 Jan 2024 19:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85typeof=20NaN=20Infinity=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/KeyWord.uts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uni_modules/uts-tests/utssdk/KeyWord.uts b/uni_modules/uts-tests/utssdk/KeyWord.uts index 14dc40a..5ea2bb6 100644 --- a/uni_modules/uts-tests/utssdk/KeyWord.uts +++ b/uni_modules/uts-tests/utssdk/KeyWord.uts @@ -89,6 +89,8 @@ export function testKeyWord() : Result { expect(typeof (0.0)).toEqual('Double') // #endif + expect(typeof (NaN)).toEqual('number') + expect(typeof (Infinity)).toEqual('number') expect(typeof ("hello world")).toEqual('string') expect(typeof ([1, 2, 3])).toEqual('object') expect(typeof (new Array())).toEqual('object') -- GitLab