Skip to content

Commit

Permalink
Replace String with AbstractString, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jbn committed Oct 12, 2015
1 parent 3c0b9f5 commit 3ca0424
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_schedule.jl
Expand Up @@ -49,7 +49,7 @@ Base.call(mc::MockCallable, env, sched::Schedule) = mc.x


type HelloAgent
name::String
name::AbstractString
end

Base.call(agent::HelloAgent, env, sched) = push!(env, agent.name)
Expand Down Expand Up @@ -345,7 +345,7 @@ facts("SequenceOfActions") do
(env, sch) -> push!(env, "c")
])

xs = String[]
xs = AbstractString[]
seq(xs, Schedule())
@fact xs --> ["a", "b", "c"]
end
Expand All @@ -359,7 +359,7 @@ facts("ShuffledActions") do
(env, sch) -> push!(env, "c")
])

xs = String[]
xs = AbstractString[]
for _ in 1:10
seq(xs, Schedule())
end
Expand Down

0 comments on commit 3ca0424

Please sign in to comment.