go_echo_wol/main_test.go

14 lines
187 B
Go

package main
import (
"goweb/database"
"testing"
)
func TestAdd(t *testing.T) {
if ans := database.CreateTable(); ans == 0 {
t.Errorf("1 + 2 expected be 3, but %d got", ans)
}
}