Sha256: fa8f2e2ebf3a7ad5e7108832ea67c0245ba3e10391d96afa7066ea12d4cd58c1

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe "Standard Library" do
  describe "car" do
    before :each do
      @interpreter = Flea::Interpreter.new
    end
    
    it "should return first item of list" do
      result = @interpreter.run('
        (car (quote (10 2 2)))
      ')
      result.should == 10
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flea-0.1.0 spec/flea/standard_library/car_spec.rb