go-by-test/racer/racer_test.go

16 lines
251 B
Go
Raw Normal View History

2024-09-18 08:15:53 +00:00
package racer
import "testing"
func TestRacer(t *testing.T) {
slowURL := "http://www.facebook.com"
fastURL := "http://www.quii.dev"
want := fastURL
got := Racer(slowURL, fastURL)
if got != want {
t.Errorf("got %q, want %q", got, want)
}
}