diff options
author | Samuel Williams <[email protected]> | 2021-12-19 09:56:52 +1300 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2021-12-19 12:25:38 +1300 |
commit | f3e30b26c509c6dd707bc07c4a73fbac2576e9e2 (patch) | |
tree | 57b05a331d3196f2ce7072632bd789526aa633af /test/ruby/test_io_buffer.rb | |
parent | 6bef1ac62850be6d83a069ac3d3be0b8e2f3afcf (diff) |
Default size for IO::Buffer.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5300
Diffstat (limited to 'test/ruby/test_io_buffer.rb')
-rw-r--r-- | test/ruby/test_io_buffer.rb | 4 |
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 |