summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-12-19 09:56:52 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-12-19 12:25:38 +1300
commitf3e30b26c509c6dd707bc07c4a73fbac2576e9e2 (patch)
tree57b05a331d3196f2ce7072632bd789526aa633af /test/ruby
parent6bef1ac62850be6d83a069ac3d3be0b8e2f3afcf (diff)
Default size for IO::Buffer.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5300
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_io_buffer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_io_buffer.rb b/test/ruby/test_io_buffer.rb
index f7c175b589..c629d2829e 100644
--- a/test/ruby/test_io_buffer.rb
+++ b/test/ruby/test_io_buffer.rb
@@ -9,6 +9,10 @@ class TestIOBuffer < Test::Unit::TestCase
Warning[:experimental] = experimental
end
+ def test_default_size
+ assert_equal IO::Buffer::DEFAULT_SIZE, IO::Buffer.new.size
+ end
+
def assert_negative(value)
assert(value < 0, "Expected #{value} to be negative!")
end