Skip to content

Commit

Permalink
Regression spec for #2764.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Mar 29, 2015
1 parent 8d7c1b1 commit 4ff9bd3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/regression/GH-2764_iso_2022_jp_finish_spec.rb
@@ -0,0 +1,9 @@
describe "UTF-8 text transcoded to ISO-2022-JP" do
it "does not include null bytes in finish sequence" do
str = "あいうえお"
dst = ""
ec = Encoding::Converter.new str.encoding, Encoding::ISO_2022_JP, 0
ec.primitive_convert str.dup, dst, nil, nil, 0
expect(dst.bytesize).to eq(16)
end
end

0 comments on commit 4ff9bd3

Please sign in to comment.