abcex/abcex_test.go
Arnas Udovic c11c23dd98
All checks were successful
continuous-integration/drone/push Build is passing
fix encoding to zero
2024-08-08 14:53:11 +03:00

24 lines
316 B
Go

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
}