From fb978fab6d51c3ec0114098f0195fcef9bfc6efc Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 24 Jun 2021 20:39:52 +0900 Subject: [PATCH] Tests for MiniTest define anonymous test cases --- tool/lib/minitest/unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb index 6097dc36d7..ec6d6357b0 100644 --- a/tool/lib/minitest/unit.rb +++ b/tool/lib/minitest/unit.rb @@ -1419,7 +1419,7 @@ module MiniTest end suites = suites.sort_by do |suite| crc32 = 0xffffffff - (suite.name + salt).each_byte do |data| + "#{suite.name}#{salt}".each_byte do |data| crc32 = crc_tbl[(crc32 ^ data) & 0xff] ^ (crc32 >> 8) end crc32 ^ 0xffffffff