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
464bbbdd
Commit
464bbbdd
authored
May 18, 2014
by
ksss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
instance method name use "#" instead of "." for assert
parent
1f6d8d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/t/module.rb
test/t/module.rb
+3
-3
No files found.
test/t/module.rb
View file @
464bbbdd
...
@@ -254,7 +254,7 @@ assert('Module#const_get', '15.2.2.4.21') do
...
@@ -254,7 +254,7 @@ assert('Module#const_get', '15.2.2.4.21') do
assert_equal
42
,
Test4ConstGet
.
const_get
(
:Const4Test4ConstGet
)
assert_equal
42
,
Test4ConstGet
.
const_get
(
:Const4Test4ConstGet
)
end
end
assert
(
'Module
.
const_missing'
,
'15.2.2.4.22'
)
do
assert
(
'Module
#
const_missing'
,
'15.2.2.4.22'
)
do
module
Test4ConstMissing
module
Test4ConstMissing
def
self
.
const_missing
(
sym
)
def
self
.
const_missing
(
sym
)
42
# the answer to everything
42
# the answer to everything
...
@@ -273,7 +273,7 @@ assert('Module#const_get', '15.2.2.4.23') do
...
@@ -273,7 +273,7 @@ assert('Module#const_get', '15.2.2.4.23') do
assert_equal
23
,
Test4ConstSet
.
const_get
(
:Const4Test4ConstSet
)
assert_equal
23
,
Test4ConstSet
.
const_get
(
:Const4Test4ConstSet
)
end
end
assert
(
'Module
.
constants'
,
'15.2.2.4.24'
)
do
assert
(
'Module
#
constants'
,
'15.2.2.4.24'
)
do
$n
=
[]
$n
=
[]
module
TestA
module
TestA
C
=
1
C
=
1
...
@@ -444,7 +444,7 @@ assert('Module#remove_method', '15.2.2.4.41') do
...
@@ -444,7 +444,7 @@ assert('Module#remove_method', '15.2.2.4.41') do
assert_false
Test4RemoveMethod
::
Child
.
instance_methods
(
false
).
include?
:hello
assert_false
Test4RemoveMethod
::
Child
.
instance_methods
(
false
).
include?
:hello
end
end
assert
(
'Module
.
undef_method'
,
'15.2.2.4.42'
)
do
assert
(
'Module
#
undef_method'
,
'15.2.2.4.42'
)
do
module
Test4UndefMethod
module
Test4UndefMethod
class
Parent
class
Parent
def
hello
def
hello
...
...
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