diff --git a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts index bb265f88f4901cdfdf55832ee691972964b01b23..968227269664a174ab00168f57480c101ac4f760 100644 --- a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts +++ b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts @@ -57,7 +57,7 @@ export function testUTSJSONObject() : Result { } let data2 = JSON.parse(JSON.stringify(data1)) - expect(data2!.toJSONString()).toEqual('{"str":"test","num":1,"num2":2.369}') + expect(data2!.toJSONString()).toEqual('{"str":"test","num":1.0,"num2":2.369}') class TestData2 implements IJSONStringify{ toJSON():any|null{ diff --git a/uni_modules/uts-tests/utssdk/console.uts b/uni_modules/uts-tests/utssdk/console.uts index f5c30b3426af606e93150699b7e72b26d7d4fb19..e01b79c69b67eb6d6f6c9301c40a569ba6812146 100644 --- a/uni_modules/uts-tests/utssdk/console.uts +++ b/uni_modules/uts-tests/utssdk/console.uts @@ -30,7 +30,7 @@ export function testConsole() : Result { let aj2 = JSON.parse('{"a":1}') as UTSJSONObject; - expect(obtainInnerObject(aj2['a']).get("type")).toEqual("Int"); + expect(obtainInnerObject(aj2['a']).get("type")).toEqual("Double"); expect(obtainInnerObject(aj2['a']).get("subType")).toEqual("number"); // #endif