Sha256: b168bea13ccedbe8834f7f54505ae1b48bfdaabfe5762ad87b42ef3181665ee9

Contents?: true

Size: 411 Bytes

Versions: 26

Compression:

Stored size: 411 Bytes

Contents

describe "Numeric#even?" do
  it "is true for zero" do
    0.even?.should be_true
  end

  it "is true for even positive Fixnums" do
    4.even?.should be_true
  end

  it "is true for even negative Fixnums" do
    (-4).even?.should be_true
  end

  it "is false for odd positive Fixnums" do
    5.even?.should be_false
  end

  it "is false for odd negative Fixnums" do
    (-5).even?.should be_false
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/core/numeric/even_spec.rb
opal-0.5.4 spec/corelib/numeric/even_spec.rb
opal-0.5.2 spec/corelib/numeric/even_spec.rb
opal-0.5.0 spec/corelib/numeric/even_spec.rb
opal-0.4.4 spec/rubyspec/core/numeric/even_spec.rb
opal-0.4.3 spec/rubyspec/core/numeric/even_spec.rb
opal-0.4.2 spec/rubyspec/core/numeric/even_spec.rb
opal-0.4.1 spec/rubyspec/core/numeric/even_spec.rb
opal-0.4.0 spec/rubyspec/core/numeric/even_spec.rb
opal-0.3.44 spec/rubyspec/core/numeric/even_spec.rb
opal-0.3.43 spec/rubyspec/core/numeric/even_spec.rb
opal-0.3.42 spec/core/numeric/even_spec.rb
opal-0.3.41 spec/core/numeric/even_spec.rb
opal-0.3.40 spec/core/numeric/even_spec.rb
opal-0.3.39 spec/core/numeric/even_spec.rb
opal-0.3.38 spec/core/numeric/even_spec.rb
opal-0.3.37 spec/core/numeric/even_spec.rb
opal-0.3.36 spec/core/numeric/even_spec.rb
opal-0.3.35 spec/core/numeric/even_spec.rb
opal-0.3.34 spec/core/numeric/even_spec.rb