-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2986 from ruby/fix-up-parse-result-constants
Fix up lex result constants
- Loading branch information
Showing
3 changed files
with
43 additions
and
10 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,23 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "../test_helper" | ||
|
||
module Prism | ||
class LexTest < TestCase | ||
def test_lex_result | ||
result = Prism.lex("") | ||
assert_kind_of LexResult, result | ||
|
||
result = Prism.lex_file(__FILE__) | ||
assert_kind_of LexResult, result | ||
end | ||
|
||
def test_parse_lex_result | ||
result = Prism.parse_lex("") | ||
assert_kind_of ParseLexResult, result | ||
|
||
result = Prism.parse_lex_file(__FILE__) | ||
assert_kind_of ParseLexResult, result | ||
end | ||
end | ||
end |
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