|
|
@ -32,7 +32,7 @@ var lexNumTests = []struct {
|
|
|
|
|
|
|
|
|
|
|
|
func TestLexnum(t *testing.T) {
|
|
|
|
func TestLexnum(t *testing.T) {
|
|
|
|
rand.Seed(time.Now().UnixNano())
|
|
|
|
rand.Seed(time.Now().UnixNano())
|
|
|
|
e := NewEncoder('x', 'o')
|
|
|
|
e := NewEncoder('x', 'o')
|
|
|
|
for _, test := range lexNumTests {
|
|
|
|
for _, test := range lexNumTests {
|
|
|
|
s := e.EncodeInt(test.in)
|
|
|
|
s := e.EncodeInt(test.in)
|
|
|
|
t.Logf("%d -> %s", test.in, test.out)
|
|
|
|
t.Logf("%d -> %s", test.in, test.out)
|
|
|
|