diff options
Diffstat (limited to 'test/test_input.rb')
-rw-r--r-- | test/test_input.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_input.rb b/test/test_input.rb index add7598..802e099 100644 --- a/test/test_input.rb +++ b/test/test_input.rb @@ -1,5 +1,6 @@ # Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net> # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require_relative 'server_helper' require 'digest/md5' @@ -22,7 +23,7 @@ class TestInput < Testcase abort "unrecognized input type: #{input.class}" end - buf = "" + buf = ''.dup md5 = Digest::MD5.new while input.read(16384, buf) md5 << buf |