Sha256: b7480a6c407bb5151a074f04d7b02b6257e6048a2e0b680373d0617b46e7dd2e

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

require 'test/environment'

class DecodingTest < Test::Unit::TestCase
  context "The BEncode decoder" do
    should_decode 42, "i42e"
    should_decode 0, "i0e"
    should_decode -42, "i-42e"

    should_decode "foo", "3:foo"
    should_decode "", "0:"

    should_decode [1, 2, 3], "li1ei2ei3ee"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bencode-0.6.0 test/decoding_test.rb