xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

测试用例设计 All In One

测试用例设计 All In One

边界值 / 极值

边界测试用例

const nums = [1, 2, 3, 4, 5, 10];
// the `10` edge case ❌
const strs = Array.from(nums.join(''));
console.log(strs);
// ['1', '2', '3', '4', '5', '10']

const nums = [1, 2, 3, 4, 5, 10];
// bugfix: the `10` edge case ✅
const strs = Array.from(nums, x => `${x}`);
console.log(strs);
// ['1', '2', '3', '4', '5', '10']

https://stackoverflow.com/questions/26624166/convert-integer-array-to-string-array-in-javascript/63189055?noredirect=1#comment126842329_63189055

refs

https://zhuanlan.zhihu.com/p/62095921



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-04-07 23:35  xgqfrms  阅读(26)  评论(1编辑  收藏  举报