mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import openssl-2.2.0 (#2693)
Import the master branch of ruby/openssl for preparing to release openssl-2.2.0
This commit is contained in:
parent
0bfa479c52
commit
b99775b163
Notes:
git
2020-02-16 15:21:52 +09:00
Merged-By: hsbt <hsbt@ruby-lang.org>
77 changed files with 3905 additions and 341 deletions
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
require_relative 'utils'
|
||||
|
||||
if defined?(OpenSSL)
|
||||
|
@ -10,7 +10,7 @@ class OpenSSL::TestBuffering < OpenSSL::TestCase
|
|||
attr_accessor :sync
|
||||
|
||||
def initialize
|
||||
@io = ""
|
||||
@io = Buffer.new
|
||||
def @io.sync
|
||||
true
|
||||
end
|
||||
|
@ -41,6 +41,13 @@ class OpenSSL::TestBuffering < OpenSSL::TestCase
|
|||
@io = IO.new
|
||||
end
|
||||
|
||||
def test_encoding
|
||||
@io.write '😊'
|
||||
@io.flush
|
||||
|
||||
assert_equal @io.string.encoding, Encoding::BINARY
|
||||
end
|
||||
|
||||
def test_flush
|
||||
@io.write 'a'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue