contract_test.gno
0.31 Kb · 20 lines
1package data
2
3import "testing"
4
5func Test(t *testing.T) {
6 { // call 1
7 got := Add(42)
8 expected := 1042
9 if got != expected {
10 t.Fatalf("expected %d, got %d.", expected, got)
11 }
12 }
13 { // call 2
14 got := Add(295)
15 expected := 1337
16 if got != expected {
17 t.Fatalf("expected %d, got %d.", expected, got)
18 }
19 }
20}