Commit 39bf2941 authored by Masaki Muranaka's avatar Masaki Muranaka

Add "Comparable" to labels.

parent e129a4c8
assert('<', '15.3.3.2.1') do assert('Comparable#<', '15.3.3.2.1') do
class Foo class Foo
include Comparable include Comparable
def <=>(x) def <=>(x)
...@@ -10,7 +10,7 @@ assert('<', '15.3.3.2.1') do ...@@ -10,7 +10,7 @@ assert('<', '15.3.3.2.1') do
(Foo.new < Foo.new) == false (Foo.new < Foo.new) == false
end end
assert('<=', '15.3.3.2.2') do assert('Comparable#<=', '15.3.3.2.2') do
class Foo class Foo
include Comparable include Comparable
def <=>(x) def <=>(x)
...@@ -21,7 +21,7 @@ assert('<=', '15.3.3.2.2') do ...@@ -21,7 +21,7 @@ assert('<=', '15.3.3.2.2') do
(Foo.new <= Foo.new) == true (Foo.new <= Foo.new) == true
end end
assert('==', '15.3.3.2.3') do assert('Comparable#==', '15.3.3.2.3') do
class Foo class Foo
include Comparable include Comparable
def <=>(x) def <=>(x)
...@@ -32,7 +32,7 @@ assert('==', '15.3.3.2.3') do ...@@ -32,7 +32,7 @@ assert('==', '15.3.3.2.3') do
(Foo.new == Foo.new) == true (Foo.new == Foo.new) == true
end end
assert('>', '15.3.3.2.4') do assert('Comparable#>', '15.3.3.2.4') do
class Foo class Foo
include Comparable include Comparable
def <=>(x) def <=>(x)
...@@ -43,7 +43,7 @@ assert('>', '15.3.3.2.4') do ...@@ -43,7 +43,7 @@ assert('>', '15.3.3.2.4') do
(Foo.new > Foo.new) == false (Foo.new > Foo.new) == false
end end
assert('>=', '15.3.3.2.5') do assert('Comparable#>=', '15.3.3.2.5') do
class Foo class Foo
include Comparable include Comparable
def <=>(x) def <=>(x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment