package hx_url_method import ( "testing" "gitp78su.ipnodns.ru/svi/kern/v4/lev0" ) func TestHxUrlMethod(t *testing.T) { swap := NewHxUrlMethod() if swap == nil { t.Fatalf("swap==nil") } if method := swap.Method(); method.Get() != "hx-post" { t.Fatalf("tag not empty") } swap.Set(lev0.LetTxt("hx-get")) if method := swap.Method(); method.Get() != "hx-get" { t.Fatalf("tag bad") } }