diff --git a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts index f9a208297d33b345b3e94cc5d8207e80649932a1..d64bda15a4755aec78e55f52b7238c13dc5510af 100644 --- a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts +++ b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts @@ -22,7 +22,19 @@ export function testUTSJSONObject() : Result { const returnedTarget = UTSJSONObject.assign(target, source); expect(returnedTarget.toMap().size).toEqual(3); - console.log(returnedTarget) + + type A = { + username:"张三", + age:12 + } + type C = { + work:0.001 + } + let b = UTSJSONObject.assign(new A("张三",12),{b:2},new C(0.002)) + expect(b['age']).toEqual(12); + expect(b['username']).toEqual("张三"); + expect(b['b']).toEqual(2); + expect(b['work']).toEqual(0.002); // #endif })