diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-11 13:48:16 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-12 17:24:43 +0900 |
commit | cdcfe1082c54830de810c22095635a31405c043b (patch) | |
tree | 55ef7053f84eefd678493fa66801cf909e51e8db /test/rubygems | |
parent | bef49e6e8d03a34b95f3e69ef7d23395027a44d2 (diff) | |
download | ruby-cdcfe1082c54830de810c22095635a31405c043b.tar.gz |
Revert 924ce2c5ba4d1c1dc781a6a06682204d358421bb
Because test-unit didn't provide the benchmark test. And This test
is fragile with the several environments.
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_version.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/rubygems/test_gem_version.rb b/test/rubygems/test_gem_version.rb index f57aa10445..91325c2214 100644 --- a/test/rubygems/test_gem_version.rb +++ b/test/rubygems/test_gem_version.rb @@ -2,8 +2,6 @@ require 'rubygems/test_case' require "rubygems/version" -require "minitest/benchmark" - class TestGemVersion < Gem::TestCase class V < ::Gem::Version end @@ -110,15 +108,6 @@ class TestGemVersion < Gem::TestCase end end - def bench_anchored_version_pattern - assert_performance_linear 0.5 do |count| - version_string = count.times.map {|i| "0" * i.succ }.join(".") << "." - version_string =~ Gem::Version::ANCHORED_VERSION_PATTERN - end - rescue RegexpError - skip "It fails to allocate the memory for regex pattern of Gem::Version::ANCHORED_VERSION_PATTERN" - end - def test_empty_version ["", " ", " "].each do |empty| assert_equal "0", Gem::Version.new(empty).version |