Files
go-tmux/scope_test.go

28 lines
399 B
Go

package tmux
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestScopeToFlags(t *testing.T) {
tests := []struct {
scope Scope
flags string
}{
{0, ""},
{Server, "-s"},
{GlobalSession, "-g"},
{Session, ""},
{GlobalWindow, "-gw"},
{Window, "-w"},
{38404, ""},
{934, ""},
}
for _, tt := range tests {
assert.Equal(t, tt.flags, ScopeToFlags(tt.scope))
}
}