test/decoding_test.rb in bencode-0.8.2 vs test/decoding_test.rb in bencode-1.0.0

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: utf-8 require 'environment' describe "decoding" do it_should_decode 42, "i42e" it_should_decode 0, "i0e" @@ -12,6 +13,9 @@ hsh = {"foo" => "bar", "baz" => "qux"} it_should_decode hsh, "d3:foo3:bar3:baz3:quxe" it_should_decode 42, "i42eBOGUS", :ignore_trailing_junk => true + + it_should_decode "café", "5:café" + it_should_decode ["你好", "中文"], "l6:你好6:中文e" end