Skip to content

Instantly share code, notes, and snippets.

@spiegela
Last active August 29, 2015 13:57
Show Gist options
  • Save spiegela/9825733 to your computer and use it in GitHub Desktop.
Save spiegela/9825733 to your computer and use it in GitHub Desktop.
base64 vlq unit tests
test "Base64VLQ Encoding" do
assert_equal "A", Base64VLQ.encode(0)
assert_equal "wlB", Base64VLQ.encode(600)
assert_equal "grC", Base64VLQ.encode(1200)
assert_equal "gg9D", Base64VLQ.encode(64000)
assert_equal "h49C", Base64VLQ.encode(-48000)
# ad nauseam...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment