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

[rubygems/rubygems] Test platform parsing stability

On past versions there were observed cases of inconsistencies when some
platforms were re-parsed.

Ensure that a platform's string representation parses again in a
platform object equal to the original.

https://github.com/rubygems/rubygems/commit/6da35ee93c
This commit is contained in:
Loic Nageleisen 2020-11-24 13:55:10 +01:00 committed by git
parent 615f79be3c
commit f254b673f8

View file

@ -144,6 +144,7 @@ class TestGemPlatform < Gem::TestCase
test_cases.each do |arch, expected|
platform = Gem::Platform.new arch
assert_equal expected, platform.to_a, arch.inspect
assert_equal expected, Gem::Platform.new(platform.to_s).to_a, arch.inspect
end
end