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
8ab846b5
Commit
8ab846b5
authored
Jul 19, 2019
by
KOBAYASHI Shuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine `String#chr` test and separate `Fixnum#chr` test
parent
7e229c47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
mrbgems/mruby-string-ext/test/fixnum.rb
mrbgems/mruby-string-ext/test/fixnum.rb
+3
-0
mrbgems/mruby-string-ext/test/string.rb
mrbgems/mruby-string-ext/test/string.rb
+3
-6
No files found.
mrbgems/mruby-string-ext/test/fixnum.rb
0 → 100644
View file @
8ab846b5
assert
(
'Fixnum#chr'
)
do
assert_equal
"a"
,
97
.
chr
end
mrbgems/mruby-string-ext/test/string.rb
View file @
8ab846b5
...
...
@@ -298,12 +298,6 @@ assert('String#oct') do
assert_equal
(
-
8
),
"-10"
.
oct
end
assert
(
'String#chr'
)
do
assert_equal
"a"
,
"abcde"
.
chr
# test Fixnum#chr as well
assert_equal
"a"
,
97
.
chr
end
assert
(
'String#lines'
)
do
assert_equal
[
"Hel
\n
"
,
"lo
\n
"
,
"World!"
],
"Hel
\n
lo
\n
World!"
.
lines
assert_equal
[
"Hel
\n
"
,
"lo
\n
"
,
"World!
\n
"
],
"Hel
\n
lo
\n
World!
\n
"
.
lines
...
...
@@ -681,8 +675,11 @@ assert('String#ord(UTF-8)') do
end
if
UTF8STRING
assert
(
'String#chr'
)
do
assert_equal
"a"
,
"abcde"
.
chr
assert_equal
"h"
,
"hello!"
.
chr
assert_equal
""
,
""
.
chr
end
assert
(
'String#chr(UTF-8)'
)
do
assert_equal
"こ"
,
"こんにちは世界!"
.
chr
end
if
UTF8STRING
...
...
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