提交 f5d010e2 编写于 作者: 杜庆泉's avatar 杜庆泉

HELLO UTS 适配number规则修改

上级 90f25250
...@@ -256,7 +256,7 @@ export function testArray(): Result { ...@@ -256,7 +256,7 @@ export function testArray(): Result {
expect(array1).toEqual([1, 100000, 21, 30, 4]); expect(array1).toEqual([1, 100000, 21, 30, 4]);
const array2 = [5, 1, 4, 2, 3]; const array2 = [5, 1, 4, 2, 3];
array2.sort((a, b):Int => a - b); array2.sort((a, b):number => a - b);
expect(array2).toEqual([1, 2, 3, 4, 5]); expect(array2).toEqual([1, 2, 3, 4, 5]);
// const array3 = [5, "banana", 4, "apple", 3, "cherry", 2, "date", 1]; // const array3 = [5, "banana", 4, "apple", 3, "cherry", 2, "date", 1];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册