diff options
| author | Matthew Hall <hallmatthew314@gmail.com> | 2023-03-08 19:24:28 +1300 |
|---|---|---|
| committer | Matthew Hall <hallmatthew314@gmail.com> | 2023-03-08 19:24:28 +1300 |
| commit | 1724b6a644ee799bd49b6bbefa2b5d345aae14d9 (patch) | |
| tree | da60a7281ca914ab8526169d3aaa4c9b950f95c2 | |
| parent | 1a78e6caf0fc641ee0f0d0de64cc704c6ea7f5c2 (diff) | |
Remove pointless tests
| -rw-r--r-- | spec/parcom_spec.cr | 26 |
1 files changed, 0 insertions, 26 deletions
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 |
