Code.require_file "../test_helper", __FILE__

defmodule RangeTest do
  use ExUnit.Case

  test :first do
    assert Range.new(1, 3).first == 1
  end

  test :last do
    assert Range.new(1, 3).last == 3
  end

  test :op do
    assert (1..3).first == 1
    assert (1..3).last  == 3
  end
end
Code.require_file "../test_helper", __FILE__

defmodule RangeTest do
  use ExUnit.Case

  test :first do
    assert Range.new(1, 3).first == 1
  end

  test :last do
    assert Range.new(1, 3).last == 3
  end

  test :op do
    assert (1..3).first == 1
    assert (1..3).last  == 3
  end

  test :in do
    refute 0 in 1..3, "raw range assertion"
    assert 1 in 1..3, "raw range assertion"
    assert 2 in 1..3, "raw range assertion"
    assert 3 in 1..3, "raw range assertion"
    refute 4 in 1..3, "raw range assertion"
  end
end
Add some in range assertions
Add some in range assertions

pedrosnk/elixir,gfvcastro/elixir,beedub/elixir,elixir-lang/elixir,gfvcastro/elixir,joshprice/elixir,antipax/elixir,lexmag/elixir,kimshrier/elixir,kimshrier/elixir,lexmag/elixir,kelvinst/elixir,beedub/elixir,kelvinst/elixir,antipax/elixir,michalmuskala/elixir,ggcampinho/elixir,pedrosnk/elixir,ggcampinho/elixir