提交 57c70661 编写于 作者: O openharmony_ci 提交者: Gitee

!1150 modify testcases on 20211123

Merge pull request !1150 from 杨清/0924
......@@ -12,6 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import I18n from '@ohos.i18n'
import Intl from '@ohos.intl'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
......@@ -880,7 +882,10 @@ describe('intlTest', function () {
it('formatNumber_test_0800', 0, function () {
let numfmt = new Intl.NumberFormat('aa');
console.log('formatNumber_test_0800 ' + numfmt.format(123456.789));
expect(numfmt.format(123456.789)).assertEqual('123456.789');
let lang = I18n.getSystemLanguage();
if (lang === 'zh') {
expect(numfmt.format(123456.789)).assertEqual('123,456.789');
}
})
/* *
......@@ -935,7 +940,10 @@ describe('intlTest', function () {
it('formatNumber_test_1300', 0, function () {
let numfmt = new Intl.NumberFormat(['aa','bb']);
console.log('formatNumber_test_1300 ' + numfmt.format(123456.789));
expect(numfmt.format(123456.789)).assertEqual('123456.789');
let lang = I18n.getSystemLanguage();
if (lang === 'zh') {
expect(numfmt.format(123456.789)).assertEqual('123,456.789');
}
})
/* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册