diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-14 13:15:33 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-14 13:15:33 +0000 |
commit | 373e87a74db2fd71e870376b743eaad4ed74d42a (patch) | |
tree | db985cfe91dcfb37a661bf868ed1a31b0fd64eed /test/socket/test_nonblock.rb | |
parent | fb2a6ecf9e12b13d535977637abfb2ba84182b6a (diff) |
* ext/socket/lib/socket.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket/test_nonblock.rb')
-rw-r--r-- | test/socket/test_nonblock.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb index 55198ba4dd..3f8d548c5e 100644 --- a/test/socket/test_nonblock.rb +++ b/test/socket/test_nonblock.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + begin require "socket" require "io/nonblock" @@ -129,7 +131,7 @@ class TestSocketNonblock < Test::Unit::TestCase mesg = u1.recv_nonblock(100) assert_equal("", mesg) - buf = "short" + buf = "short".dup out = "hello world" * 4 out.freeze u2.send(out, 0, u1.getsockname) |