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
46c92603
Commit
46c92603
authored
Jun 11, 2012
by
Masamitsu MURASE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for slice of shared string.
parent
85901e05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
test/t/string.rb
test/t/string.rb
+4
-1
No files found.
test/t/string.rb
View file @
46c92603
...
...
@@ -256,6 +256,9 @@ assert('String#slice', '15.2.10.5.34') do
d1
=
'abc'
.
slice
(
0
,
0
)
e1
=
'abc'
.
slice
(
1
,
2
)
# slice of shared string
e11
=
e1
.
slice
(
0
)
# args is RegExp
# TODO SEGFAULT ATM
...
...
@@ -265,7 +268,7 @@ assert('String#slice', '15.2.10.5.34') do
a
==
'a'
and
b
==
'c'
and
c
==
nil
and
d
==
nil
and
a1
==
nil
and
b1
==
nil
and
c1
==
nil
and
d1
==
''
and
e1
==
'bc'
and
e1
==
'bc'
and
e11
==
'b'
and
a3
==
'bc'
and
b3
==
nil
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