Sha256: 20743517e0833476dfcf798c486b83acfb86a3595b444b2fc60567061d13d355
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe "Standard Library" do describe "begin" do before :each do @interpreter = Flea::Interpreter.new end it "should execute each expression after the begin call and return final value" do result = @interpreter.run(' (begin (define test 1) (set! test 2)) ') result.should == 2 @interpreter.base_environment.find(:test).should == 2 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flea-0.1.0 | spec/flea/standard_library/begin_spec.rb |