Sha256: c8f8fa2ac0e6fa2fcfb73e3bbd6c9897454d2ed10c51655a12ab01f3625abe50
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'dionysus/string' describe String do it "should encode64s" do "abcde\240z405".encode64s.should == "YWJjZGWgejQwNQ==" end it "should encode64" do "abcde\240z405".encode64.should == "YWJjZGWgejQwNQ==\n" end it "should decode64" do "YWJjZGWgejQwNQ==".decode64.should == "abcde\240z405" "YWJjZGWgejQwNQ==\n".decode64.should == "abcde\240z405" end it "should encodeHex" do "abcde\240z405".encodeHex.should == "6162636465a07a343035" "abcde\240z405".encodeHexidecimal.should == "6162636465a07a343035" end it "should decodeHex" do '6162636465a07a343035'.decodeHexidecimal.should == "abcde\240z405" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dionysus-0.2.0 | spec/string_spec.rb |