-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d37472
commit 8555d5e
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test_helper' | ||
|
||
class ParseIvarTest < Minitest::Test | ||
def test_parse_ivar | ||
result = Mjollnir.parse('@mjollnir') | ||
|
||
expected = { | ||
'NODE_SCOPE' => { | ||
'args' => nil, | ||
'body' => { | ||
'NODE_IVAR' => { | ||
'vid' => :@mjollnir | ||
} | ||
} | ||
} | ||
} | ||
|
||
assert_equal expected, result | ||
end | ||
end |