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
1e5d15db
Commit
1e5d15db
authored
May 29, 2012
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #207 from bovi/add-literal-tests
Add Literal Tests
parents
84c5d35b
82d600da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
test/t/literals.rb
test/t/literals.rb
+17
-2
No files found.
test/t/literals.rb
View file @
1e5d15db
...
...
@@ -46,7 +46,22 @@ assert('Literals Strings Quoted Non-Expanded', '8.7.6.3.4') do
end
assert
(
'Literals Strings Quoted Expanded'
,
'8.7.6.3.5'
)
do
# segv atm
true
a
=
%Q{abc}
b
=
%Q(abc)
c
=
%Q[abc]
d
=
%Q<abc>
e
=
%Q/abc/
f
=
%Q/ab
\/
c/
g
=
%Q{
#{
a
}
}
a
==
'abc'
and
b
==
'abc'
and
c
==
'abc'
and
d
==
'abc'
and
e
==
'abc'
and
f
==
'ab/c'
and
g
==
'abc'
end
# Not Implemented ATM assert('Literals Strings Here documents', '8.7.6.3.6') do
# Not Implemented ATM assert('Literals Array', '8.7.6.4') do
# Not Implemented ATM assert('Literals Regular expression', '8.7.6.5') do
# Not Implemented ATM assert('Literals Symbol', '8.7.6.6') do
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