Sha256: 2fc63dd24671fefa671ef5c4090025afdccf6e1a0335fa24a8fb126a51ce2068
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe "Standard Library" do describe "read" do before :each do @interpreter = Flea::Interpreter.new @old_stdin = $stdin @buffer = StringIO.new $stdin = @buffer end it "should read data structure from STDIN" do @buffer.string = "(1 2.0 test (1 2 3))\n" result = @interpreter.run('(read)') result.should == [[1, 2.0, :test, [1, 2, 3]]] end after :each do $stdin = @old_stdin end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flea-0.1.0 | spec/flea/standard_library/read_spec.rb |