Sha256: 0321aadc0af05b9c4b8311357026cc2bc25a4bcc5136c6ea826e1492beb40e4b

Contents?: true

Size: 305 Bytes

Versions: 16

Compression:

Stored size: 305 Bytes

Contents

# -*- coding: utf-8 -*-

require File.expand_path( File.join(File.dirname(__FILE__), "..", "spec_helper") )

describe "TCNumeric" do

  it "test_simple" do
    10.with_separator.should == "10"
    10.0.with_separator.should == "10.0"
    1000000.with_separator.should == "1,000,000"
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
tree.rb-0.3.12 spec/tree_rb/extension_numeric_spec.rb
tree.rb-0.3.11 spec/tree_rb/extension_numeric_spec.rb
tree.rb-0.3.10 spec/tree_rb/extension_numeric_spec.rb
tree.rb-0.3.9 spec/tree_rb/extension_numeric_spec.rb
tree.rb-0.3.8 spec/tree_rb/extension_numeric_spec.rb
tree.rb-0.3.7 spec/tree_rb/extension_numeric_spec.rb
tree.rb-0.3.6 spec/tree_rb/extension_numeric_spec.rb
tree.rb-0.3.5 spec/tree_rb/extension_numeric_spec.rb
tree.rb-0.3.4 spec/tree_rb/extension_numeric_spec.rb
dircat-0.1.12 spec/dircat/numeric_spec.rb
dircat-0.1.11 spec/dircat/numeric_spec.rb
dircat-0.1.10 spec/dircat/numeric_spec.rb
dircat-0.1.9 spec/dircat/numeric_spec.rb
dircat-0.1.8 spec/dircat/numeric_spec.rb
dircat-0.1.7 spec/dircat/numeric_spec.rb
dircat-0.1.6 spec/dircat/numeric_spec.rb