From e199329cbb23352fbd18c2eb2586b564ad9b206c Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Wed, 8 Mar 2023 20:55:04 +1300 Subject: Add Parser#recover --- spec/parcom_spec.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/parcom_spec.cr') 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 -- cgit v1.2.1