You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
438 B

4 years ago
(import ../hashids :as h)
(assert
(= "j0gW" (h/encode {} 12345)))
#(assert
#(= "jR" (h/encode {} 1)))
#@test "encode: single number" {
#run ./bashids -e 12345
#[[ "$output" == "j0gW" ]]
#run ./bashids -e 1
#[[ "$output" == "jR" ]]
#run ./bashids -e 22
#[[ "$output" == "Lw" ]]
#run ./bashids -e 333
#[[ "$output" == "Z0E" ]]
#run ./bashids -e 9999
#[[ "$output" == "w0rR" ]]
#}