Sha256: c21a1add15846717efd5b9778699d42bdcd8715c411b5a5d56ae5c687f7a25a9

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

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

describe "Standard Library" do
  describe "list-tail" do
    before :each do
      @interpreter = Flea::Interpreter.new
    end
    
    it "should return trailing subset of list" do
      result = @interpreter.run('
        (list-tail (quote (1 2 3 4 5)) 2)
      ')
      result.should == [3, 4, 5]
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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