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

[rubygems/rubygems] Remove weird spacing from error messages

https://github.com/rubygems/rubygems/commit/9e21fe7f58
This commit is contained in:
David Rodríguez 2020-03-27 13:49:55 +01:00 committed by Hiroshi SHIBATA
parent 4cd90c7bc0
commit c16815cca7
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
7 changed files with 40 additions and 40 deletions

View file

@ -199,15 +199,15 @@ class TestGemSource < Gem::TestCase
installed = Gem::Source::Installed.new
local = Gem::Source::Local.new
assert_equal(0, remote.<=>(remote), 'remote <=> remote')
assert_equal(0, remote.<=>(remote), 'remote <=> remote')
assert_equal(-1, remote.<=>(specific), 'remote <=> specific')
assert_equal(1, specific.<=>(remote), 'specific <=> remote')
assert_equal(-1, remote.<=>(specific), 'remote <=> specific')
assert_equal(1, specific.<=>(remote), 'specific <=> remote')
assert_equal(-1, remote.<=>(local), 'remote <=> local')
assert_equal(1, local.<=>(remote), 'local <=> remote')
assert_equal(-1, remote.<=>(local), 'remote <=> local')
assert_equal(1, local.<=>(remote), 'local <=> remote')
assert_equal(-1, remote.<=>(installed), 'remote <=> installed')
assert_equal(-1, remote.<=>(installed), 'remote <=> installed')
assert_equal(1, installed.<=>(remote), 'installed <=> remote')
no_uri = @source.dup

View file

@ -208,16 +208,16 @@ class TestGemSourceGit < Gem::TestCase
installed = Gem::Source::Installed.new
vendor = Gem::Source::Vendor.new 'vendor/foo'
assert_equal(0, git.<=>(git), 'git <=> git')
assert_equal(0, git.<=>(git), 'git <=> git')
assert_equal(1, git.<=>(remote), 'git <=> remote')
assert_equal(1, git.<=>(remote), 'git <=> remote')
assert_equal(-1, remote.<=>(git), 'remote <=> git')
assert_equal(1, git.<=>(installed), 'git <=> installed')
assert_equal(1, git.<=>(installed), 'git <=> installed')
assert_equal(-1, installed.<=>(git), 'installed <=> git')
assert_equal(-1, git.<=>(vendor), 'git <=> vendor')
assert_equal(1, vendor.<=>(git), 'vendor <=> git')
assert_equal(-1, git.<=>(vendor), 'git <=> vendor')
assert_equal(1, vendor.<=>(git), 'vendor <=> git')
end
def test_specs

View file

@ -17,19 +17,19 @@ class TestGemSourceInstalled < Gem::TestCase
assert_equal(0, installed.<=>(installed), 'installed <=> installed')
assert_equal(-1, remote.<=>(installed), 'remote <=> installed')
assert_equal(-1, remote.<=>(installed), 'remote <=> installed')
assert_equal(1, installed.<=>(remote), 'installed <=> remote')
assert_equal(1, installed.<=>(local), 'installed <=> local')
assert_equal(-1, local.<=>(installed), 'local <=> installed')
assert_equal(-1, local.<=>(installed), 'local <=> installed')
assert_equal(-1, specific.<=>(installed), 'specific <=> installed')
assert_equal(-1, specific.<=>(installed), 'specific <=> installed')
assert_equal(1, installed.<=>(specific), 'installed <=> specific')
assert_equal(1, git. <=>(installed), 'git <=> installed')
assert_equal(1, git. <=>(installed), 'git <=> installed')
assert_equal(-1, installed.<=>(git), 'installed <=> git')
assert_equal(1, vendor.<=>(installed), 'vendor <=> installed')
assert_equal(1, vendor.<=>(installed), 'vendor <=> installed')
assert_equal(-1, installed.<=>(vendor), 'installed <=> vendor')
end

View file

@ -93,16 +93,16 @@ class TestGemSourceLocal < Gem::TestCase
installed = Gem::Source::Installed.new
local = Gem::Source::Local.new
assert_equal(0, local.<=>(local), 'local <=> local')
assert_equal(0, local.<=>(local), 'local <=> local')
assert_equal(-1, remote.<=>(local), 'remote <=> local')
assert_equal(1, local.<=>(remote), 'local <=> remote')
assert_equal(-1, remote.<=>(local), 'remote <=> local')
assert_equal(1, local.<=>(remote), 'local <=> remote')
assert_equal(1, installed.<=>(local), 'installed <=> local')
assert_equal(-1, local.<=>(installed), 'local <=> installed')
assert_equal(-1, local.<=>(installed), 'local <=> installed')
assert_equal(-1, specific.<=>(local), 'specific <=> local')
assert_equal(1, local.<=>(specific), 'local <=> specific')
assert_equal(-1, specific.<=>(local), 'specific <=> local')
assert_equal(1, local.<=>(specific), 'local <=> specific')
end
end

View file

@ -59,14 +59,14 @@ class TestGemSourceLock < Gem::TestCase
lock = Gem::Source::Lock.new git
assert_equal(1, lock.<=>(git), 'lock <=> git')
assert_equal(-1, git.<=>(lock), 'git <=> lock')
assert_equal(-1, git.<=>(lock), 'git <=> lock')
end
def test_spaceship_installed
installed = Gem::Source::Installed.new
lock = Gem::Source::Lock.new installed
assert_equal(1, lock.<=>(installed), 'lock <=> installed')
assert_equal(1, lock.<=>(installed), 'lock <=> installed')
assert_equal(-1, installed.<=>(lock), 'installed <=> lock')
end
@ -74,7 +74,7 @@ class TestGemSourceLock < Gem::TestCase
local = Gem::Source::Local.new
lock = Gem::Source::Lock.new local # nonsense
assert_equal(1, lock.<=>(local), 'lock <=> local')
assert_equal(1, lock.<=>(local), 'lock <=> local')
assert_equal(-1, local.<=>(lock), 'local <=> lock')
end
@ -82,7 +82,7 @@ class TestGemSourceLock < Gem::TestCase
remote = Gem::Source.new @gem_repo
lock = Gem::Source::Lock.new remote
assert_equal(1, lock.<=>(remote), 'lock <=> remote')
assert_equal(1, lock.<=>(remote), 'lock <=> remote')
assert_equal(-1, remote.<=>(lock), 'remote <=> lock')
end
@ -92,7 +92,7 @@ class TestGemSourceLock < Gem::TestCase
specific = Gem::Source::SpecificFile.new gem
lock = Gem::Source::Lock.new specific # nonsense
assert_equal(1, lock.<=>(specific), 'lock <=> specific')
assert_equal(1, lock.<=>(specific), 'lock <=> specific')
assert_equal(-1, specific.<=>(lock), 'specific <=> lock')
end
@ -100,7 +100,7 @@ class TestGemSourceLock < Gem::TestCase
vendor = Gem::Source::Vendor.new 'vendor/a'
lock = Gem::Source::Lock.new vendor
assert_equal(1, lock.<=>(vendor), 'lock <=> vendor')
assert_equal(1, lock.<=>(vendor), 'lock <=> vendor')
assert_equal(-1, vendor.<=>(lock), 'vendor <=> lock')
end

View file

@ -46,15 +46,15 @@ class TestGemSourceSpecificFile < Gem::TestCase
installed = Gem::Source::Installed.new
local = Gem::Source::Local.new
assert_equal(0, specific.<=>(specific), 'specific <=> specific')
assert_equal(0, specific.<=>(specific), 'specific <=> specific')
assert_equal(-1, remote.<=>(specific), 'remote <=> specific')
assert_equal(1, specific.<=>(remote), 'specific <=> remote')
assert_equal(-1, remote.<=>(specific), 'remote <=> specific')
assert_equal(1, specific.<=>(remote), 'specific <=> remote')
assert_equal(-1, specific.<=>(local), 'specific <=> local')
assert_equal(1, local. <=>(specific), 'local <=> specific')
assert_equal(-1, specific.<=>(local), 'specific <=> local')
assert_equal(1, local. <=>(specific), 'local <=> specific')
assert_equal(-1, specific. <=>(installed), 'specific <=> installed')
assert_equal(-1, specific. <=>(installed), 'specific <=> installed')
assert_equal(1, installed.<=>(specific), 'installed <=> specific')
a2 = quick_gem 'a', '2'

View file

@ -16,15 +16,15 @@ class TestGemSourceVendor < Gem::TestCase
git = Gem::Source::Git.new 'a', 'a', 'master'
installed = Gem::Source::Installed.new
assert_equal(0, vendor.<=>(vendor), 'vendor <=> vendor')
assert_equal(0, vendor.<=>(vendor), 'vendor <=> vendor')
assert_equal(1, vendor.<=>(remote), 'vendor <=> remote')
assert_equal(-1, remote.<=>(vendor), 'remote <=> vendor')
assert_equal(1, vendor.<=>(remote), 'vendor <=> remote')
assert_equal(-1, remote.<=>(vendor), 'remote <=> vendor')
assert_equal(1, vendor.<=>(git), 'vendor <=> git')
assert_equal(-1, git.<=>(vendor), 'git <=> vendor')
assert_equal(1, vendor.<=>(git), 'vendor <=> git')
assert_equal(-1, git.<=>(vendor), 'git <=> vendor')
assert_equal(1, vendor.<=>(installed), 'vendor <=> installed')
assert_equal(1, vendor.<=>(installed), 'vendor <=> installed')
assert_equal(-1, installed.<=>(vendor), 'installed <=> vendor')
end