Sha256: 4d916bd825cfb422b673fa1cc8f98979f3951d594371c0a580935e1148f55b20

Contents?: true

Size: 237 Bytes

Versions: 16

Compression:

Stored size: 237 Bytes

Contents

require 'facets/string/xor.rb'
require 'test/unit'

class StringXorTest < Test::Unit::TestCase

  def test_xor
    r = "try this out" ^ "puddingsnacks"
    x = "\004\a\035D\035\006\016\000N\016\026\037"
    assert_equal(x,r)
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/string/test_xor.rb
facets-2.8.3 test/core/string/test_xor.rb
facets-2.8.2 test/core/string/test_xor.rb
facets-2.8.1 test/core/string/test_xor.rb
facets-2.8.0 test/core/string/test_xor.rb
facets-2.7.0 test/core/string/test_xor.rb
facets-2.6.0 test/core/string/test_xor.rb
facets-2.4.0 test/string/test_xor.rb
facets-2.4.1 test/string/test_xor.rb
facets-2.4.3 test/core/string/test_xor.rb
facets-2.4.4 test/core/string/test_xor.rb
facets-2.4.2 test/core/string/test_xor.rb
facets-2.5.1 test/core/string/test_xor.rb
facets-2.5.0 test/core/string/test_xor.rb
facets-2.4.5 test/core/string/test_xor.rb
facets-2.5.2 test/core/string/test_xor.rb