2020-07-07 10:14:14 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2020-07-20 10:13:54 +00:00
|
|
|
"time"
|
2020-07-07 10:14:14 +00:00
|
|
|
)
|
|
|
|
|
2020-07-20 10:13:54 +00:00
|
|
|
func TestTimeAdd(t *testing.T) {
|
|
|
|
finishpoint := time.Now()
|
|
|
|
time.Sleep(time.Second * 2)
|
|
|
|
t.Error(time.Now().Sub(finishpoint) > time.Second*1)
|
|
|
|
}
|
|
|
|
|
2020-08-13 11:11:53 +00:00
|
|
|
func TestMain(t *testing.T) {
|
|
|
|
main()
|
2020-07-07 10:39:24 +00:00
|
|
|
}
|