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

add textencoder test case

上级 4d897372
......@@ -9,6 +9,19 @@ export function testEncoder() : Result {
console.log(int8); // Uint8Array(3) [226, 130, 172]
// #END
expect(int8.toString()).toEqual("226,130,172");
let ret1:Array<any> = []
let ret2:Array<any> = []
for(let item of int8){
ret1.push(item)
}
for(let item of int8){
ret2.push(item)
}
expect(ret1.toString()).toEqual("-30,-126,-84");
expect(ret2.toString()).toEqual("-30,-126,-84");
})
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册