Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save houmanka/f69ce2684dcfd4a1af84429691803405 to your computer and use it in GitHub Desktop.
Save houmanka/f69ce2684dcfd4a1af84429691803405 to your computer and use it in GitHub Desktop.
RussianPeasantMultiplication.CombineTest
defmodule RussianPeasantMultiplication.CombineTest do
use ExUnit.Case
doctest RussianPeasantMultiplication.Combine
import Monad.Result
alias RussianPeasantMultiplication.Combine, as: Combine
test "needs to create tuple from 2 lists" do
res = Combine.combine([13, 6, 3, 1], [238, 476, 952, 1904]) |> unwrap!
assert res == [{13, 238}, {6, 476}, {3, 952}, {1, 1904}]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment