test.fnl (284B)
1 (local { : hash : base64url } (require :anoia)) 2 3 (assert (= (hash "") 5381)) 4 5 ;; these examples from https://theartincode.stanis.me/008-djb2/ 6 (assert (= (hash "Hello") 210676686969)) 7 (assert (= (hash "Hello!") 6952330670010)) 8 9 (assert (= (base64url "hello world") "aGVsbG8gd29ybGQ"))