未验证 提交 7efcb016 编写于 作者: O openharmony_ci 提交者: Gitee

!7186 Failed to modify the buffer case

Merge pull request !7186 from lwx1067109/master
......@@ -1842,9 +1842,9 @@ describe('BufferTest', function () {
let str = buf1.toString('hex');
expect(str).assertEqual("f1");
let buf2 = buffer.from("F1FG", "ascii")
let buf2 = buffer.from("F1FG", "ascii")
str = buf2.toString("ascii");
expect(str).assertEqual("F1FGe");
expect(str).assertEqual("F1FG");
let buf3 = buffer.from("F1FG刘", "base64")
str = buf3.toString("base64");
......@@ -1854,13 +1854,13 @@ describe('BufferTest', function () {
str = buf4.toString("base64url");
expect(str).assertEqual("F1FG");
let buf5 = buffer.from("F1FG", "binary")
let buf5 = buffer.from("F1FG", "binary")
str = buf5.toString("binary");
expect(str).assertEqual("F1FGå");
expect(str).assertEqual("F1FG");
let buf6 = buffer.from("F1FG", "latin1")
let buf6 = buffer.from("F1FG", "latin1")
str = buf6.toString("latin1");
expect(str).assertEqual("F1FGe");
expect(str).assertEqual("F1FG");
let buf7 = buffer.from("F1FG刘", "ucs2")
str = buf7.toString("ucs2");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册