diff options
| author | Matthew Hall <hallmatthew314@gmail.com> | 2023-03-08 20:55:04 +1300 |
|---|---|---|
| committer | Matthew Hall <hallmatthew314@gmail.com> | 2023-03-08 20:55:04 +1300 |
| commit | e199329cbb23352fbd18c2eb2586b564ad9b206c (patch) | |
| tree | 72e98e0339991ae194ad14a18568fde55dde69f3 /spec/parcom_spec.cr | |
| parent | b61aba7186cb7c616d6c8f9a3b9e6442173cbbf6 (diff) | |
Add Parser#recover
Diffstat (limited to 'spec/parcom_spec.cr')
| -rw-r--r-- | spec/parcom_spec.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/parcom_spec.cr b/spec/parcom_spec.cr index 2f3f6ba..00c59a0 100644 --- a/spec/parcom_spec.cr +++ b/spec/parcom_spec.cr @@ -337,7 +337,7 @@ describe Phrase do end describe Recover do - p = Recover.new(Token.new('t'), '@') + p = Token.new('t').recover('@') describe "#parse" do it "succeeds and returns the wrapped parser's value if it succeeds" do |
