修改单元测试
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7f8fd10b66
commit
3634111e3b
|
@ -1,12 +1,11 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"goweb/database"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAdd(t *testing.T) {
|
||||
if ans := database.CreateTable(); ans == 0 {
|
||||
if ans := 3; ans == 0 {
|
||||
t.Errorf("1 + 2 expected be 3, but %d got", ans)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue