Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed May 5, 2016
2 parents fc458ce + 251b15a commit 70f9b23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/runtests.jl
@@ -1,7 +1,7 @@
using Base.Test
import ReusableFunctions

function f(x)
function freuse(x)
sleep(0.1)
return x
end
Expand All @@ -10,7 +10,7 @@ restartdir = "ReusableFunctions_restart"

run(`rm -Rf $restartdir`)

for fp in [ReusableFunctions.maker3function(f, restartdir), ReusableFunctions.maker3function(f)]
for fp in [ReusableFunctions.maker3function(freuse, restartdir), ReusableFunctions.maker3function(freuse)]
for i = 1:2
@test fp(1) == 1
end
Expand Down Expand Up @@ -71,12 +71,12 @@ end

run(`rm -Rf $restartdir`)

function g(x)
function greuse(x)
sleep(0.1)
return Dict("asdf"=>x["a"] - x["b"], "hjkl"=>x["a"] * x["b"])
end

r3g = ReusableFunctions.maker3function(g, restartdir, ["a", "b"], ["asdf", "hjkl"])
r3g = ReusableFunctions.maker3function(greuse, restartdir, ["a", "b"], ["asdf", "hjkl"])
d = Dict("a"=>1, "b"=>3)
r = Dict("asdf"=>-2, "hjkl"=>3)
for i = 1:2
Expand Down

2 comments on commit 70f9b23

@tkelman
Copy link
Contributor

@tkelman tkelman commented on 70f9b23 May 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that this only exists as a tag and has not been pushed to your master branch

@montyvesselinov
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i pushed it now

Please sign in to comment.