mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-07-19 09:15:57 +00:00
15 lines
207 B
Go
15 lines
207 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestAddOne(t *testing.T) {
|
|
assert.Equal(t, 2, addOne(1))
|
|
}
|
|
|
|
func TestAddTwo(t *testing.T) {
|
|
assert.Equal(t, 3, addTwo(1))
|
|
}
|