15 lines
217 B
Go
15 lines
217 B
Go
|
package abcex
|
||
|
|
||
|
import "fmt"
|
||
|
import "testing"
|
||
|
|
||
|
func TestEncode(t *testing.T) {
|
||
|
fmt.Println(Encode(12345))
|
||
|
// Output: 9ix
|
||
|
}
|
||
|
|
||
|
func TestDecode(t *testing.T) {
|
||
|
fmt.Println(Decode("9ix"))
|
||
|
// Output: 12345
|
||
|
}
|