Skip to content

Commit f4a19e0

Browse files
committed
Use a better example to illustrate the round up behavior for fixed-width encodings
1 parent 85ee23b commit f4a19e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/ruby/optional/capi/encoding_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
end
9999

100100
it "rounds up for fixed-width encodings" do
101-
@s.rb_enc_strlen(@str, 5, Encoding::UTF_32BE).should == 2
102-
@s.rb_enc_strlen(@str, 5, Encoding::UTF_32LE).should == 2
101+
@s.rb_enc_strlen(@str, 7, Encoding::UTF_32BE).should == 2
102+
@s.rb_enc_strlen(@str, 7, Encoding::UTF_32LE).should == 2
103103
@s.rb_enc_strlen(@str, 5, Encoding::BINARY).should == 5
104104
end
105105
end

0 commit comments

Comments
 (0)