Sha256: 8bd3159776bceab97fe9ce85859ce8e1ac62ff5fa9428b56ac708260f49c0326

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

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

describe "Standard Library" do
  describe "quote" do
    before :each do
      @interpreter = Flea::Interpreter.new
    end
    
    it "should quote a list" do
      result = @interpreter.run('(quote (1 2 3))')
      result.should == [1, 2, 3]
    end
    
    it "should quote a single literal" do
      result = @interpreter.run('(quote 1)')
      result.should == 1
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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