package helpers import ( "testing" ) const ( EXAMPLE = "\n/remote.php/dav/files/naudachu/temp/id/33225HTTP/1.1 200 OK\n" ) // [ ] todo normal test... func TestGetFileID(t *testing.T) { if output := GetFileIDFromRespBody([]byte(EXAMPLE)); output != 33225 { t.Errorf("Output %q not equal to expected %q", output, 33225) } }