From 133051c279fa555b3febbc2c7e5f3ff51268f452 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 19 Oct 2023 11:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20long=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=99=A4=E6=B3=95=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/Operators.uts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uni_modules/uts-tests/utssdk/Operators.uts b/uni_modules/uts-tests/utssdk/Operators.uts index 89b9220..1e18a6a 100644 --- a/uni_modules/uts-tests/utssdk/Operators.uts +++ b/uni_modules/uts-tests/utssdk/Operators.uts @@ -110,6 +110,11 @@ export function testOperators(): Result { // web 返回 Infinity // todo 统一处理 // expect(divide(1, 0)).toEqual(); + expect(divide(16788990011, 5)).toEqual(3357798002.2); + expect(divide(16788990015, 5)).toEqual(3357798003); + expectNumber(divide(16788990015, 10088990000)).toEqualDouble(1.6640902622561822); + + }) test('/=', () => { let a:Number = 3; -- GitLab