Sha256: af5ba8af4370e3bebf1384fdf5a2db92c64d5b4c26643ba8c3be39098da4737e
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe "Standard Library" do describe "addition operator" do before :each do @interpreter = Flea::Interpreter.new end it "should add several numbers" do result = @interpreter.run('(+ 1 2 3)') result.should == 6 end it "should evaluate its arguments before adding them" do result = @interpreter.run(' (define a 2) (+ a a a) ') result.should == 6 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flea-0.1.0 | spec/flea/standard_library/addition_operator_spec.rb |