Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

contract_test.gno

0.18 Kb · 11 lines
 1package hello
 2
 3import "testing"
 4
 5func Test(t *testing.T) {
 6	got := Hello()
 7	expected := "Hello World!"
 8	if got != expected {
 9		t.Fatalf("expected %q, got %q.", expected, got)
10	}
11}