blob: 1dd90344b2282f551438c490367f3c0d13c093d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//go:build test
package paths
import (
"github.com/stretchr/testify/assert"
"strconv"
"testing"
)
func TestSetAndReset(t *testing.T) {
for i, pt := range Paths {
old := pt.String()
val := strconv.Itoa(i)
Set(pt, val)
assert.Equal(t, pt.String(), val)
Reset()
assert.Equal(t, pt.String(), old)
}
}
|