Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_blog_1_filetest.gno

0.28 Kb ยท 18 lines
 1package main
 2
 3import (
 4	"testing"
 5
 6	"gno.land/p/lou/blog"
 7)
 8
 9func main() {
10	testing.SetRealm(testing.NewCodeRealm("gno.land/r/test"))
11	_, err := blog.NewBlog("My Blog", address("he"))
12	if err != nil {
13		println("error:", err.Error())
14	}
15}
16
17// Output:
18// error: invalid caller address