test/unit/utils_tests.rb in assert-2.19.0 vs test/unit/utils_tests.rb in assert-2.19.1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require "assert" require "assert/utils" require "tempfile" require "assert/config" @@ -76,15 +78,15 @@ class StdlibPpProcTests < UnitTests desc "`stdlib_pp_proc`" should "build a pp proc that uses stdlib `PP.pp` to pretty print objects" do - exp_obj_pps = objs1.map{ |o| PP.pp(o, "", 79).strip } + exp_obj_pps = objs1.map{ |o| PP.pp(o, +"", 79).strip } act_obj_pps = objs1.map{ |o| subject.stdlib_pp_proc.call(o) } assert_that(act_obj_pps).equals(exp_obj_pps) cust_width = 1 - exp_obj_pps = objs1.map{ |o| PP.pp(o, "", cust_width).strip } + exp_obj_pps = objs1.map{ |o| PP.pp(o, +"", cust_width).strip } act_obj_pps = objs1.map{ |o| subject.stdlib_pp_proc(cust_width).call(o) } assert_that(act_obj_pps).equals(exp_obj_pps) end end