Skip to content

Instantly share code, notes, and snippets.

@andoneve
Created August 22, 2013 10:58
Show Gist options
  • Save andoneve/6305811 to your computer and use it in GitHub Desktop.
Save andoneve/6305811 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe Lani::Parser, '#parse' do
def parse(tokens)
Lani::Parser.new.parse(tokens)
end
it 'tests for addition' do
expect(parse("2 + 2")).to eq([
4
])
# @result = @evaluator.parse("2+2")
# @result.should == 4
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment