package usecase

import "testing"

func TestMergeHTTPMethods(t *testing.T) {
	got := mergeHTTPMethods("GET", "PATCH")
	if got != "GET|PATCH" {
		t.Fatalf("got %q", got)
	}
	got = mergeHTTPMethods("GET|POST", "POST|PATCH")
	if got != "GET|POST|PATCH" {
		t.Fatalf("got %q", got)
	}
}