diff options
author | Loic Nageleisen <loic.nageleisen@gmail.com> | 2020-11-24 13:55:10 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-08-23 05:50:20 +0900 |
commit | f254b673f89c12c42538d84b431116cf5ed0cde7 (patch) | |
tree | d80b10f43eca59025c354082459a8c024d1e85af /test | |
parent | 615f79be3cef210c26b967f06979ed464bf9e178 (diff) | |
download | ruby-f254b673f89c12c42538d84b431116cf5ed0cde7.tar.gz |
[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
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_platform.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb index 0fb5bf59a5..831079acb2 100644 --- a/test/rubygems/test_gem_platform.rb +++ b/test/rubygems/test_gem_platform.rb @@ -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 |