Adding modding folder with a hacked build.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package input_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/inkyblackness/hacked/ui/input"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestResolveShortcutReturnsValuesOfKnownCombo(t *testing.T) {
|
||||
key, knownKey := input.ResolveShortcut("c", input.ModControl)
|
||||
|
||||
assert.True(t, knownKey)
|
||||
assert.Equal(t, input.KeyCopy, key)
|
||||
}
|
||||
|
||||
func TestResolveShortcutReturnsFalseForUnknownCombo(t *testing.T) {
|
||||
_, knownKey := input.ResolveShortcut("l", input.ModControl.With(input.ModShift))
|
||||
|
||||
assert.False(t, knownKey)
|
||||
}
|
||||
Reference in New Issue
Block a user