Sha256: 99696fc744e62be93655b14baf02f6ab9135422c27af896a0459f7fa75c0865c
Contents?: true
Size: 767 Bytes
Versions: 1
Compression:
Stored size: 767 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe "Standard Library" do describe "greater-than?" do before :each do @interpreter = Flea::Interpreter.new end it "return true if it's first argument is larger than all the others" do result = @interpreter.run('(greater-than? 10 1 2 3 4)') result.should == true end it "return false if it's first argument is not larger than all the others" do result = @interpreter.run('(greater-than? 10 1 2 3 45)') result.should == false end it "should evaluate its arguments" do result = @interpreter.run(' (define a 2) (define b 10) (greater-than? b a a) ') result.should == true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flea-0.1.0 | spec/flea/standard_library/greater_than_spec.rb |