1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Tests for MiniTest define anonymous test cases

This commit is contained in:
Nobuyoshi Nakada 2021-06-24 20:39:52 +09:00
parent e1c3cb9357
commit fb978fab6d
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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