From 1724b6a644ee799bd49b6bbefa2b5d345aae14d9 Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Wed, 8 Mar 2023 19:24:28 +1300 Subject: Remove pointless tests --- spec/parcom_spec.cr | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'spec') diff --git a/spec/parcom_spec.cr b/spec/parcom_spec.cr index 2fff7fc..b2a3a80 100644 --- a/spec/parcom_spec.cr +++ b/spec/parcom_spec.cr @@ -93,32 +93,6 @@ describe Parser do result.should be_a(Result(Char, Char)) end end - - describe "#|" do - it "creates an `Alt` instance from `self` and another `Parser(T, V)`" do - p_alt = p | p - - p_alt.should be_a(Alt(Char, Char)) - end - end - - describe "#assert" do - it "creates an `Assert` instance from `self` and a `Proc(T, Bool)`" do - f = ->(x : Char) { x == '#' } - p_assert = p.assert(f) - - p_assert.should be_a(Assert(Char, Char)) - end - end - - describe "#map" do - it "creates a `Map(T, V, U)` instance from `self` and a Proc(V, U)" do - f = ->(x : Char) { x.letter? } - p_map = p.map(f) - - p_map.should be_a(Map(Char, Char, Bool)) - end - end end describe Flunk do -- cgit v1.2.1