Sha256: 7fb442b8d050b05b4afffe86d73e5966b3b0cc2815fe5cd9980f8b914272b913

Contents?: true

Size: 197 Bytes

Versions: 2

Compression:

Stored size: 197 Bytes

Contents

require 'dirge'
require ~'spec_helper'

describe Anybase, "to" do
  it "should translate base to a number from a string " do
    Anybase.new("012345678").to_native(1827).should == "2450"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
anybase-0.0.2 spec/to_spec.rb
anybase-0.0.1 spec/to_spec.rb