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
d68eb3d0
Commit
d68eb3d0
authored
Feb 18, 2019
by
KOBAYASHI Shuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong assertion method in some tests
parent
9215c854
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-enum-ext/test/enum.rb
mrbgems/mruby-enum-ext/test/enum.rb
+1
-1
mrbgems/mruby-socket/test/socket.rb
mrbgems/mruby-socket/test/socket.rb
+1
-1
test/t/enumerable.rb
test/t/enumerable.rb
+1
-1
No files found.
mrbgems/mruby-enum-ext/test/enum.rb
View file @
d68eb3d0
...
@@ -128,7 +128,7 @@ assert("Enumerable#any? (enhancement)") do
...
@@ -128,7 +128,7 @@ assert("Enumerable#any? (enhancement)") do
end
end
assert
(
"Enumerable#each_with_object"
)
do
assert
(
"Enumerable#each_with_object"
)
do
assert_
true
[
2
,
4
,
6
,
8
,
10
,
12
,
14
,
16
,
18
,
20
],
(
1
..
10
).
each_with_object
([])
{
|
i
,
a
|
a
<<
i
*
2
}
assert_
equal
[
2
,
4
,
6
,
8
,
10
,
12
,
14
,
16
,
18
,
20
],
(
1
..
10
).
each_with_object
([])
{
|
i
,
a
|
a
<<
i
*
2
}
assert_raise
(
ArgumentError
)
{
(
1
..
10
).
each_with_object
()
{
|
i
,
a
|
a
<<
i
*
2
}
}
assert_raise
(
ArgumentError
)
{
(
1
..
10
).
each_with_object
()
{
|
i
,
a
|
a
<<
i
*
2
}
}
end
end
...
...
mrbgems/mruby-socket/test/socket.rb
View file @
d68eb3d0
...
@@ -28,7 +28,7 @@ assert('Socket#recvfrom') do
...
@@ -28,7 +28,7 @@ assert('Socket#recvfrom') do
rstr
,
ai
=
s
.
recvfrom
sstr
.
size
rstr
,
ai
=
s
.
recvfrom
sstr
.
size
assert_equal
sstr
,
rstr
assert_equal
sstr
,
rstr
assert_
true
"127.0.0.1"
,
ai
.
ip_address
assert_
equal
"127.0.0.1"
,
ai
.
ip_address
ensure
ensure
s
.
close
rescue
nil
s
.
close
rescue
nil
c
.
close
rescue
nil
c
.
close
rescue
nil
...
...
test/t/enumerable.rb
View file @
d68eb3d0
...
@@ -68,7 +68,7 @@ assert('Enumerable#find', '15.3.2.2.7') do
...
@@ -68,7 +68,7 @@ assert('Enumerable#find', '15.3.2.2.7') do
end
end
assert
(
'Enumerable#find_all'
,
'15.3.2.2.8'
)
do
assert
(
'Enumerable#find_all'
,
'15.3.2.2.8'
)
do
assert_
true
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
].
find_all
()
{
|
i
|
i
%
2
==
0
},
[
2
,
4
,
6
,
8
]
assert_
equal
[
2
,
4
,
6
,
8
],
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
].
find_all
()
{
|
i
|
i
%
2
==
0
}
end
end
assert
(
'Enumerable#grep'
,
'15.3.2.2.9'
)
do
assert
(
'Enumerable#grep'
,
'15.3.2.2.9'
)
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