Search Apps Documentation Source Content File Folder Download Copy Actions Download

daokit_test.gno

0.47 Kb ยท 24 lines
 1package daokit
 2
 3import (
 4	"testing"
 5
 6	"gno.land/p/nt/testutils"
 7)
 8
 9var (
10	alice = testutils.TestAddress("alice")
11	bob   = testutils.TestAddress("bob")
12	carol = testutils.TestAddress("carol")
13	dave  = testutils.TestAddress("dave")
14)
15
16func TestNewDAO(t *testing.T) {
17	testing.SetOriginCaller(alice)
18	dao := NewCore()
19
20	resourcesLen := dao.Resources.Tree.Size()
21	if resourcesLen != 0 { // There is 0 default resources
22		t.Errorf("Expected 0 resources, got %d", resourcesLen)
23	}
24}