fixes and improvements #55

Merged
vtolstov merged 6 commits from util-router into master 2021-08-03 00:24:40 +03:00
Showing only changes of commit f2e6b7540c - Show all commits

View File

@ -110,9 +110,6 @@ func TestTokenize(t *testing.T) {
if got, want := tokens, spec.tokens; !reflect.DeepEqual(got, want) { if got, want := tokens, spec.tokens; !reflect.DeepEqual(got, want) {
t.Errorf("tokenize(%q) = %q, _; want %q, _", spec.src, got, want) t.Errorf("tokenize(%q) = %q, _; want %q, _", spec.src, got, want)
} }
if got, want := verb, ""; got != want {
t.Errorf("tokenize(%q) = _, %q; want _, %q", spec.src, got, want)
}
switch { switch {
case spec.verb != "": case spec.verb != "":