mirror of
https://github.com/jimeh/go-tmux.git
synced 2026-02-19 04:46:40 +00:00
28 lines
416 B
Go
28 lines
416 B
Go
package tmux
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestOptionsScopeFlags(t *testing.T) {
|
|
tests := []struct {
|
|
scope OptionsScope
|
|
flags string
|
|
}{
|
|
{0, ""},
|
|
{Server, "-s"},
|
|
{GlobalSession, "-g"},
|
|
{Session, ""},
|
|
{GlobalWindow, "-gw"},
|
|
{Window, "-w"},
|
|
{38404, ""},
|
|
{934, ""},
|
|
}
|
|
|
|
for _, tt := range tests {
|
|
assert.Equal(t, tt.flags, OptionsScopeFlags(tt.scope))
|
|
}
|
|
}
|