Commit 94b18f48 authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

cleanup

parent 9133090a
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment