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

Revert "Allow .0 version mismatch to pass the tests"

This reverts commit fc6e4ce62b.
This commit is contained in:
Martin Dürst 2022-03-16 15:17:30 +09:00
parent 6d603cfde1
commit e85547ae81

View file

@ -82,8 +82,7 @@ TestEmojiBreaks.data_files_available? and class TestEmojiBreaks
IO.foreach(file.fullname, encoding: Encoding::UTF_8) do |line| IO.foreach(file.fullname, encoding: Encoding::UTF_8) do |line|
line.chomp! line.chomp!
if $.==1 if $.==1
if line=="# #{file.basename}-#{file.version}.txt" || if line=="# #{file.basename}-#{file.version}.txt"
line=="# #{file.basename}-#{file.version}.0.txt"
version_mismatch = false version_mismatch = false
elsif line!="# #{file.basename}.txt" elsif line!="# #{file.basename}.txt"
raise "File Name Mismatch: line: #{line}, expected filename: #{file.basename}.txt" raise "File Name Mismatch: line: #{line}, expected filename: #{file.basename}.txt"