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
2f952a8f
Commit
2f952a8f
authored
May 25, 2014
by
yui-knk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to use assert method.
parent
229e7fe2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
test/t/enumerable.rb
test/t/enumerable.rb
+6
-4
No files found.
test/t/enumerable.rb
View file @
2f952a8f
...
@@ -107,15 +107,17 @@ assert('Enumerable#member?', '15.3.2.2.15') do
...
@@ -107,15 +107,17 @@ assert('Enumerable#member?', '15.3.2.2.15') do
end
end
assert
(
'Enumerable#partion'
,
'15.3.2.2.16'
)
do
assert
(
'Enumerable#partion'
,
'15.3.2.2.16'
)
do
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
].
partition
do
|
i
|
partition
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
].
partition
do
|
i
|
i
%
2
==
0
i
%
2
==
0
end
==
[[
0
,
2
,
4
,
6
,
8
],
[
1
,
3
,
5
,
7
,
9
]]
end
assert_equal
[[
0
,
2
,
4
,
6
,
8
],
[
1
,
3
,
5
,
7
,
9
]],
partition
end
end
assert
(
'Enumerable#reject'
,
'15.3.2.2.17'
)
do
assert
(
'Enumerable#reject'
,
'15.3.2.2.17'
)
do
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
].
reject
do
|
i
|
reject
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
].
reject
do
|
i
|
i
%
2
==
0
i
%
2
==
0
end
==
[
1
,
3
,
5
,
7
,
9
]
end
assert_equal
[
1
,
3
,
5
,
7
,
9
],
reject
end
end
assert
(
'Enumerable#select'
,
'15.3.2.2.18'
)
do
assert
(
'Enumerable#select'
,
'15.3.2.2.18'
)
do
...
...
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