diff options
author | Étienne Barrié <[email protected]> | 2024-10-21 12:04:56 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-26 18:44:15 +0900 |
commit | 82f7550f65f9872f6d7bff1a876395c23bbd7fc1 (patch) | |
tree | 5261ada8c5ac71532dc0501ee0ff1a2c03aef835 /test/json/json_addition_test.rb | |
parent | 5f9746895847be1e2dd202207d7a12f3f556294c (diff) |
Use frozen string literals
Co-authored-by: Jean Boussier <[email protected]>
Diffstat (limited to 'test/json/json_addition_test.rb')
-rw-r--r-- | test/json/json_addition_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/json/json_addition_test.rb b/test/json/json_addition_test.rb index 3a7a58176a..8c3fbda56a 100644 --- a/test/json/json_addition_test.rb +++ b/test/json/json_addition_test.rb @@ -1,4 +1,4 @@ -#frozen_string_literal: false +# frozen_string_literal: true require_relative 'test_helper' require 'json/add/core' require 'json/add/complex' @@ -114,8 +114,7 @@ class JSONAdditionTest < Test::Unit::TestCase end def test_raw_strings - raw = '' - raw.respond_to?(:encode!) and raw.encode!(Encoding::ASCII_8BIT) + raw = ''.b raw_array = [] for i in 0..255 raw << i |