Sha256: 351c83b43a960de734b5ed2e5df4c711635afa4f42e1582f04b082d3d60eb370
Contents?: true
Size: 289 Bytes
Versions: 1
Compression:
Stored size: 289 Bytes
Contents
require 'spec_helper' module Sexpr describe Reference, "eat" do let(:grammar){ {:hello => Terminal.new(/^[a-z]+$/)} } let(:rule) { Reference.new :hello, grammar } it 'delegates the call' do rule.eat(["hello", "world"]).should eq(["world"]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sexpr-0.2.0 | spec/reference/test_eat.rb |