Skip to content

Commit

Permalink
Merge pull request #17
Browse files Browse the repository at this point in the history
Test bang variants.
  • Loading branch information
mtwilliams committed Apr 2, 2016
2 parents 273dccb + cea8ba5 commit 0c01324
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/xe_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ defmodule XeTest do
assert Xe.rates({:usd, :brl}) == Xe.rates(:usd, :brl)
end

test "bang variants" do
assert {:ok, Xe.rates!({"USD", "BRL"})} == Xe.rates({"USD", "BRL"})
assert {:ok, Xe.rates!(:usd, :brl)} == Xe.rates(:usd, :brl)
end

test "parsing response" do
response = [
{"tr", [{"class", "uccRes"}],
Expand Down

0 comments on commit 0c01324

Please sign in to comment.