Created
August 22, 2013 10:58
-
-
Save andoneve/6305811 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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