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
466a18b0
Commit
466a18b0
authored
Jun 28, 2017
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant use of `Object#to_s` in interpolation.
parent
aee1476e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
mrbgems/mruby-bin-debugger/bintest/print.rb
mrbgems/mruby-bin-debugger/bintest/print.rb
+2
-2
tasks/toolchains/android.rake
tasks/toolchains/android.rake
+1
-1
test/t/kernel.rb
test/t/kernel.rb
+2
-2
No files found.
mrbgems/mruby-bin-debugger/bintest/print.rb
View file @
466a18b0
...
...
@@ -341,8 +341,8 @@ assert('mruby-bin-debugger(print) Literal:Numeric') do
tc
<<
{
:cmd
=>
"p +0100"
,
:exp
=>
'$3 = 64'
}
tc
<<
{
:cmd
=>
"p 0x100"
,
:exp
=>
'$4 = 256'
}
tc
<<
{
:cmd
=>
"p 1_234"
,
:exp
=>
'$5 = 1234'
}
tc
<<
{
:cmd
=>
"p 0b1000_0000"
,
:exp
=>
"$6 =
#{
0b1000_0000
.
to_s
}
"
}
tc
<<
{
:cmd
=>
"p 0x1000_0000"
,
:exp
=>
"$7 =
#{
0x1000_0000
.
to_s
}
"
}
tc
<<
{
:cmd
=>
"p 0b1000_0000"
,
:exp
=>
"$6 =
#{
0b1000_0000
}
"
}
tc
<<
{
:cmd
=>
"p 0x1000_0000"
,
:exp
=>
"$7 =
#{
0x1000_0000
}
"
}
tc
<<
{
:cmd
=>
"p 3.14"
,
:exp
=>
'$8 = 3.14'
}
tc
<<
{
:cmd
=>
"p -12.3"
,
:exp
=>
'$9 = -12.3'
}
...
...
tasks/toolchains/android.rake
View file @
466a18b0
...
...
@@ -263,7 +263,7 @@ Set ANDROID_PLATFORM environment variable or set :platform parameter
case
toolchain
when
:gcc
when
:clang
flags
+=
%W(-gcc-toolchain "
#{
gcc_toolchain_path
.
to_s
}
" -Wno-invalid-command-line-argument -Wno-unused-command-line-argument)
flags
+=
%W(-gcc-toolchain "
#{
gcc_toolchain_path
}
" -Wno-invalid-command-line-argument -Wno-unused-command-line-argument)
end
flags
+=
%W(-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes)
...
...
test/t/kernel.rb
View file @
466a18b0
...
...
@@ -387,7 +387,7 @@ assert('Kernel#method_missing', '15.3.1.3.30') do
begin
c
.
no_method_named_this
rescue
NoMethodError
=>
e
assert_equal
"undefined method 'no_method_named_this' for
#{
c
.
to_s
}
"
,
e
.
message
assert_equal
"undefined method 'no_method_named_this' for
#{
c
}
"
,
e
.
message
end
class
NoInspectClass
...
...
@@ -397,7 +397,7 @@ assert('Kernel#method_missing', '15.3.1.3.30') do
begin
d
.
no_method_named_this
rescue
NoMethodError
=>
e
assert_equal
"undefined method 'no_method_named_this' for
#{
d
.
to_s
}
"
,
e
.
message
assert_equal
"undefined method 'no_method_named_this' for
#{
d
}
"
,
e
.
message
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