Sha256: dd42c9bb152fdf20cfc474b239d93c5be39e3b181fefeff43661397afa975d14

Contents?: true

Size: 345 Bytes

Versions: 10

Compression:

Stored size: 345 Bytes

Contents

require 'helper'

class TestString < Test::Unit::TestCase
  
  context "A normal String object" do
  
    should "be enquotable" do
      assert_equal '"wow it works"', 'wow it works'.enquote
    end
    
    should "be one-way SHA hashable" do
      assert_equal '9f4921b51c2e573cead9af22c0e0d1a14ad7b643', 'csd'.hashed
    end
    
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
csd-0.4.3 test/unit/test_string.rb
csd-0.4.2 test/unit/test_string.rb
csd-0.4.1 test/unit/test_string.rb
csd-0.4.0 test/unit/test_string.rb
csd-0.3.7 test/unit/test_string.rb
csd-0.3.6 test/unit/test_string.rb
csd-0.3.5 test/unit/test_string.rb
csd-0.3.4 test/unit/test_string.rb
csd-0.3.3 test/unit/test_string.rb
csd-0.3.2 test/unit/test_string.rb