diff --git a/global/crossplatform/i18netstest/src/main/ets/test/l18n.test.ets b/global/crossplatform/i18netstest/src/main/ets/test/l18n.test.ets index 96b341dcb6b8195592be1e2eb965741a8e1893a6..f4c3ef1a281b05f85726528be0539738987637a0 100644 --- a/global/crossplatform/i18netstest/src/main/ets/test/l18n.test.ets +++ b/global/crossplatform/i18netstest/src/main/ets/test/l18n.test.ets @@ -638,7 +638,7 @@ describe('I18nTest', function () { calendar.setTimeZone('Asia/Shanghai'); let value = calendar.getTimeZone(); console.log('testSetTimeZoneAndGetTimeZone001 ' + value); - expect(['China Standard Time', 'Asia/Shanghai'].indexOf(value) != -1).assertTrue(); + expect(value).assertEqual('Asia/Shanghai') }) /** @@ -655,7 +655,7 @@ describe('I18nTest', function () { calendar.setTimeZone('AAA'); let value = calendar.getTimeZone(); console.log('testSetTimeZoneAndGetTimeZone002 ' + value); - expect(['GMT', 'Etc/Unknown'].indexOf(value) != -1).assertTrue(); + expect(value).assertEqual('Etc/Unknown') })