Add "Comparable" to labels.

This commit is contained in:
Masaki Muranaka
2013-04-02 11:38:36 +09:00
parent e129a4c8ef
commit 39bf29411a
+5 -5
View File
@@ -1,5 +1,5 @@
assert('<', '15.3.3.2.1') do
assert('Comparable#<', '15.3.3.2.1') do
class Foo
include Comparable
def <=>(x)
@@ -10,7 +10,7 @@ assert('<', '15.3.3.2.1') do
(Foo.new < Foo.new) == false
end
assert('<=', '15.3.3.2.2') do
assert('Comparable#<=', '15.3.3.2.2') do
class Foo
include Comparable
def <=>(x)
@@ -21,7 +21,7 @@ assert('<=', '15.3.3.2.2') do
(Foo.new <= Foo.new) == true
end
assert('==', '15.3.3.2.3') do
assert('Comparable#==', '15.3.3.2.3') do
class Foo
include Comparable
def <=>(x)
@@ -32,7 +32,7 @@ assert('==', '15.3.3.2.3') do
(Foo.new == Foo.new) == true
end
assert('>', '15.3.3.2.4') do
assert('Comparable#>', '15.3.3.2.4') do
class Foo
include Comparable
def <=>(x)
@@ -43,7 +43,7 @@ assert('>', '15.3.3.2.4') do
(Foo.new > Foo.new) == false
end
assert('>=', '15.3.3.2.5') do
assert('Comparable#>=', '15.3.3.2.5') do
class Foo
include Comparable
def <=>(x)