(import ../hashids :as h) (assert (= "j0gW" (h/encode 12345 :salt "nobody"))) #(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" ]] #}