mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add "Comparable" to labels.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user