Sha256: fa3cb3aa4706bcefc28dcfc7a5cfdc6f27239d8c7706cbb1942057d8021bd3b7
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 Bytes
Contents
require 'spec_helper' describe EDN::Reader do let(:reader) { EDN::Reader.new("[1 2] 3 :a {:b c}") } it "should respond to count" do reader.count.should == 4 end it "should respond to each" do reader.each do |element| element.should_not be_nil end end it "should return an Enumerator from each if no block given" do reader.each.should be_a(Enumerator) end it "should respond to map" do reader.map { |x| x }.should == [[1, 2], 3, :a, {:b => ~"c"}] end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
edn-1.0.3 | spec/edn/reader_spec.rb |
edn-1.0.2 | spec/edn/reader_spec.rb |
edn-1.0.1 | spec/edn/reader_spec.rb |
edn-1.0.0 | spec/edn/reader_spec.rb |