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
d2fb4752
Commit
d2fb4752
authored
Jul 13, 2014
by
Tatsuhiko Kubo
Committed by
Yukihiro "Matz" Matsumoto
Dec 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for Proc#parameters
parent
cc71bd51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
mrbgems/mruby-proc-ext/test/proc.rb
mrbgems/mruby-proc-ext/test/proc.rb
+5
-0
No files found.
mrbgems/mruby-proc-ext/test/proc.rb
View file @
d2fb4752
...
@@ -13,6 +13,11 @@ assert('Proc#inspect') do
...
@@ -13,6 +13,11 @@ assert('Proc#inspect') do
assert_kind_of
String
,
ins
assert_kind_of
String
,
ins
end
end
assert
(
'Proc#parameters'
)
do
parameters
=
Proc
.
new
{
|
x
,
y
=
42
,
*
other
|
}.
parameters
assert_equal
[[
:opt
,
:x
],
[
:opt
,
:y
],
[
:rest
,
:other
]],
parameters
end
assert
(
'Proc#lambda?'
)
do
assert
(
'Proc#lambda?'
)
do
assert_true
lambda
{}.
lambda?
assert_true
lambda
{}.
lambda?
assert_true
!
Proc
.
new
{}.
lambda?
assert_true
!
Proc
.
new
{}.
lambda?
...
...
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