Created
March 29, 2020 04:59
-
-
Save houmanka/f69ce2684dcfd4a1af84429691803405 to your computer and use it in GitHub Desktop.
RussianPeasantMultiplication.CombineTest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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