Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
587e0b01
Commit
587e0b01
authored
Jun 14, 2012
by
Masaki Muranaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for Comparable. Still not all path coverage.
parent
73d7000b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
test/t/comparable.rb
test/t/comparable.rb
+56
-0
No files found.
test/t/comparable.rb
0 → 100644
View file @
587e0b01
assert
(
'<'
,
'15.3.3.2.1'
)
do
class
Foo
include
Comparable
def
<
=>
(
x
)
0
end
end
(
Foo
.
new
<
Foo
.
new
)
==
false
end
assert
(
'<='
,
'15.3.3.2.2'
)
do
class
Foo
include
Comparable
def
<
=>
(
x
)
0
end
end
(
Foo
.
new
<=
Foo
.
new
)
==
true
end
assert
(
'=='
,
'15.3.3.2.3'
)
do
class
Foo
include
Comparable
def
<
=>
(
x
)
0
end
end
(
Foo
.
new
==
Foo
.
new
)
==
true
end
assert
(
'>'
,
'15.3.3.2.4'
)
do
class
Foo
include
Comparable
def
<
=>
(
x
)
0
end
end
(
Foo
.
new
>
Foo
.
new
)
==
false
end
assert
(
'>='
,
'15.3.3.2.5'
)
do
class
Foo
include
Comparable
def
<
=>
(
x
)
0
end
end
(
Foo
.
new
>=
Foo
.
new
)
==
true
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment