go_echo_wol/main_test.go

13 lines
148 B
Go
Raw Normal View History

2023-09-04 18:00:09 +08:00
package main
import (
"testing"
)
func TestAdd(t *testing.T) {
2023-09-11 11:58:12 +08:00
if ans := 3; ans == 0 {
2023-09-04 18:00:09 +08:00
t.Errorf("1 + 2 expected be 3, but %d got", ans)
}
}