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
11ffb938
Commit
11ffb938
authored
Nov 24, 2015
by
Tomoyuki Sahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
assert_nothing_raised is not available on mruby 1.0.0.
parent
ca495944
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
test/io.rb
test/io.rb
+20
-0
No files found.
test/io.rb
View file @
11ffb938
##
##
# IO Test
# IO Test
unless
Object
.
respond_to?
:assert_nothing_raised
def
assert_nothing_raised
(
*
exp
)
ret
=
true
if
$mrbtest_assert
$mrbtest_assert_idx
+=
1
msg
=
exp
.
last
.
class
==
String
?
exp
.
pop
:
""
begin
yield
rescue
Exception
=>
e
msg
=
"
#{
msg
}
exception raised."
diff
=
" Class: <
#{
e
.
class
}
>
\n
"
+
" Message:
#{
e
.
message
}
"
$mrbtest_assert
.
push
([
$mrbtest_assert_idx
,
msg
,
diff
])
ret
=
false
end
end
ret
end
end
assert
(
'IO TEST SETUP'
)
do
assert
(
'IO TEST SETUP'
)
do
MRubyIOTestUtil
.
io_test_setup
MRubyIOTestUtil
.
io_test_setup
end
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