5 Star 12 Fork 6

Gitee 极速下载 / gojaES51

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/dop251/goja
克隆/下载
builtin_global_test.go 407 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dmitry Panov 提交于 2021-12-03 10:59 . Refactored tests
package goja
import (
"testing"
)
func TestEncodeURI(t *testing.T) {
const SCRIPT = `
encodeURI('тест')
`
testScript(SCRIPT, asciiString("%D1%82%D0%B5%D1%81%D1%82"), t)
}
func TestDecodeURI(t *testing.T) {
const SCRIPT = `
decodeURI("http://ru.wikipedia.org/wiki/%d0%ae%D0%bd%D0%B8%D0%BA%D0%BE%D0%B4")
`
testScript(SCRIPT, newStringValue("http://ru.wikipedia.org/wiki/Юникод"), t)
}
1
https://gitee.com/mirrors/gojaES51.git
git@gitee.com:mirrors/gojaES51.git
mirrors
gojaES51
gojaES51
master

搜索帮助