Sha256: da592dd0a3f1126f3c8ea2a8a3942476e418a9f9095eca149bd0e7a0ccb18497
Contents?: true
Size: 353 Bytes
Versions: 3
Compression:
Stored size: 353 Bytes
Contents
require 'dirge' require ~'spec_helper' describe Anybase, "from" do it "should translate to a number" do Anybase.new("012345678").to_i('2350').should == 1746 end it "should raise an exception if any char isn't included" do proc { Anybase.new("012345678").to_i('a2350') }.should raise_error(Anybase::UnrecognizedCharacterError) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
anybase-0.0.3 | spec/from_spec.rb |
anybase-0.0.2 | spec/from_spec.rb |
anybase-0.0.1 | spec/from_spec.rb |