mirror of
https://github.com/tucnak/telebot
synced 2024-11-19 03:25:39 +00:00
19 lines
310 B
Go
19 lines
310 B
Go
package telebot
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
var _ Context = (*nativeContext)(nil)
|
|
|
|
func TestContext(t *testing.T) {
|
|
t.Run("Get,Set", func(t *testing.T) {
|
|
var c Context
|
|
c = new(nativeContext)
|
|
c.Set("name", "Jon Snow")
|
|
assert.Equal(t, "Jon Snow", c.Get("name"))
|
|
})
|
|
}
|