Sha256: c3151d0e2760ef92ead4caad61d85696410e1bfdc1836ca3c14dfc16a21a5b02

Contents?: true

Size: 466 Bytes

Versions: 20

Compression:

Stored size: 466 Bytes

Contents

require "#{File.dirname(__FILE__)}/../../test_helper"

class SymbolTest < Test::Unit::TestCase
  context "Symbol" do
    should "be able to compare to strings" do
      assert_equal [:a, :c, :b].sort, [:a, :b, :c]
      assert_nothing_raised do
        :a <=> :b
      end
    end
    
    should "have path separaters" do
      assert_equal :a / :b, "a/b"
    end
    
    should "classify the symbol" do
      assert_equal :C, :c.classify
    end
    
  end
  
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
poolparty-1.6.9 test/lib/core/symbol_test.rb
poolparty-1.6.8 test/lib/core/symbol_test.rb
poolparty-1.6.7 test/lib/core/symbol_test.rb
poolparty-1.6.6 test/lib/core/symbol_test.rb
poolparty-1.6.5 test/lib/core/symbol_test.rb
poolparty-1.6.4 test/lib/core/symbol_test.rb
poolparty-1.6.3 test/lib/core/symbol_test.rb
poolparty-1.6.2 test/lib/core/symbol_test.rb
poolparty-1.6.1 test/lib/core/symbol_test.rb
poolparty-1.6.0 test/lib/core/symbol_test.rb
poolparty-1.5.0 test/lib/core/symbol_test.rb
poolparty-1.4.8 test/lib/core/symbol_test.rb
poolparty-1.4.7 test/lib/core/symbol_test.rb
poolparty-1.4.6 test/lib/core/symbol_test.rb
poolparty-1.4.5 test/lib/core/symbol_test.rb
poolparty-1.4.4 test/lib/core/symbol_test.rb
poolparty-1.4.3 test/lib/core/symbol_test.rb
poolparty-1.4.2 test/lib/core/symbol_test.rb
poolparty-1.4.1 test/lib/core/symbol_test.rb
poolparty-1.4.0 test/lib/core/symbol_test.rb