Skip to content

Commit

Permalink
Merge pull request #52 from lowks/correct_forms_in_test
Browse files Browse the repository at this point in the history
Update radpath_test.exs
  • Loading branch information
lowks authored Nov 22, 2016
2 parents b7b7bda + 34d255c commit 2ec01b3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions test/radpath_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ defmodule RadpathTests.RadpathFacts do
|> tap({result_str, _} ~> result_str)
|> String.strip |> (&(assert &1 == "test of Testdir2.zip OK")).()

System.cmd("zipinfo",["-1","Testdir2.zip"]) |>
tap({result_str2, _} ~> result_str2) |>
(&(String.contains?(&1, "testdir2"))).() |> assert

System.cmd("zipinfo",["-1","Testdir2.zip"])
|> tap({result_str2, _} ~> result_str2)
|> (&(String.contains?(&1, "testdir2"))).()
|> assert

after
File.rm_rf("Testdir2.zip")
end
Expand All @@ -65,10 +66,10 @@ defmodule RadpathTests.RadpathFacts do
Radpath.zip(dir, "Testdir3.zip")
"Testdir3.zip" |> File.exists?

System.cmd("zip",["-T","Testdir3.zip"]) |>
tap({result_str, _} ~> result_str) |>
String.strip |>
(&(assert &1 == "test of Testdir3.zip OK")).()
System.cmd("zip",["-T","Testdir3.zip"])
|> tap({result_str, _} ~> result_str)
|> String.strip
|> (&(assert &1 == "test of Testdir3.zip OK")).()

System.cmd("zipinfo",["-1","Testdir3.zip"])
|> tap({result_str, _} ~> result_str)
Expand Down

0 comments on commit 2ec01b3

Please sign in to comment.