aboutsummaryrefslogtreecommitdiff
path: root/spec/parcom_spec.cr
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-03-08 20:55:04 +1300
committerMatthew Hall <hallmatthew314@gmail.com>2023-03-08 20:55:04 +1300
commite199329cbb23352fbd18c2eb2586b564ad9b206c (patch)
tree72e98e0339991ae194ad14a18568fde55dde69f3 /spec/parcom_spec.cr
parentb61aba7186cb7c616d6c8f9a3b9e6442173cbbf6 (diff)
Add Parser#recover
Diffstat (limited to 'spec/parcom_spec.cr')
-rw-r--r--spec/parcom_spec.cr2
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