Sha256: 601b071af66000e605661526ef8c223e0adb3e2e49683103a0bff43eecffae2d

Contents?: true

Size: 312 Bytes

Versions: 10

Compression:

Stored size: 312 Bytes

Contents

require 'jactive_support/java_ext/iterable'
require File.expand_path('../shared/fixtures', __FILE__)

describe "java::lang::Iterable#empty?" do
  it "returns true if the iterable has no elements" do
    Itr[].empty?.should == true
    Itr[1].empty?.should == false
    Itr[1, 2].empty?.should == false
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jactive_support-2.1.2 spec/java_ext/iterable/empty_spec.rb
jactive_support-3.0.0 spec/java_ext/iterable/empty_spec.rb
jactive_support-3.0.0.pre2 spec/java_ext/iterable/empty_spec.rb
jactive_support-3.0.0.pre1 spec/java_ext/iterable/empty_spec.rb
jactive_support-2.1.1 spec/java_ext/iterable/empty_spec.rb
jactive_support-2.1.0 spec/java_ext/iterable/empty_spec.rb
jactive_support-2.0.0 spec/java_ext/iterable/empty_spec.rb
jactive_support-1.0.2 spec/java_ext/iterable/empty_spec.rb
jactive_support-1.0.1-universal-java-1.6 spec/java_ext/iterable/empty_spec.rb
jactive_support-1.0.0-universal-java-1.6 spec/java_ext/iterable/empty_spec.rb