15 lines
223 B
Go
15 lines
223 B
Go
package threedb
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestCoordinate_Set(t *testing.T) {
|
|
expect := Coordinate{1, 1}
|
|
coord := Coordinate{}
|
|
coord.Set(1, 1)
|
|
require.Equal(t, expect, coord)
|
|
}
|