1 Star 0 Fork 21

eddylapis / Fyne

forked from Gitee 极速下载 / Fyne 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
resource_test.go 280 Bytes
一键复制 编辑 原始数据 按行查看 历史
package fyne
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewResource(t *testing.T) {
name := "test"
content := []byte{1, 2, 3, 4}
res := NewStaticResource(name, content)
assert.Equal(t, name, res.Name())
assert.Equal(t, content, res.Content())
}
Go
1
https://gitee.com/eddylapis/Fyne.git
git@gitee.com:eddylapis/Fyne.git
eddylapis
Fyne
Fyne
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891