Skip to content

Commit 4c78f7d

Browse files
committed
Added example test.
1 parent 28b5b51 commit 4c78f7d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

main_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package main_test
2+
3+
import (
4+
"testing"
5+
)
6+
7+
func TestExample(t *testing.T) {
8+
got := (1 + 1)
9+
if got != 2 {
10+
t.Errorf("1 + 1 = %d; want 2", got)
11+
}
12+
}

0 commit comments

Comments
 (0)