Skip to content
Snippets Groups Projects
Commit 94b18f48 authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

cleanup

parent 9133090a
No related branches found
No related tags found
No related merge requests found
package main
import (
"assignment-1/pkg"
"net/http"
"testing"
)
func TestGetString(t *testing.T) {
s, i := pkg.GetString("https://www.nrk.no/")
if i != http.StatusOK {
t.Errorf("[if nrk is up]Expected 200 OK, got %d", i)
}
if len(s) < 50 {
t.Errorf("[if nrk is up]Expected a body, got %s", s)
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment