Sha256: 1c0122dca289755f5e20b1d3428b8625b4514d830b3c52db6c5332c3265e4a05
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
require 'test/unit' require "#{File.dirname(__FILE__)}/../../lib/bencode.rb" class BdecodeInvalidTest < Test::Unit::TestCase errors = {:empty_string => '', :space_string => ' ', :unencoded_string => 'foobar', :multiple_top_items => 'i1ei2e', :string_length => '4:foo'} errors.each do |error, data| define_method("test_#{error}") do assert_raise(BEncode::DecodeError){ data.bdecode } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bencode-0.5.0 | test/decode/test_invalid.rb |