package abcex import ( "fmt" "testing" ) func TestEncode(t *testing.T) { fmt.Println(Encode(12345)) // Output: 9ix } func TestDecode(t *testing.T) { fmt.Println(Decode("9ix")) // Output: 12345 } func TestZero(t *testing.T) { fmt.Println(Encode(0)) // Output: 0 fmt.Println(Decode("0")) // Output: 0 }