Skip to content

Commit 8711ab9

Browse files
icweavercgarling
andauthored
Update test/_packages.jl
Co-authored-by: Chris Garling <[email protected]>
1 parent 2693808 commit 8711ab9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/_packages.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ function test_packages(mode)
1111
else
1212
@test Pkg.add(chopsuffix(p_name, ".jl")) == nothing
1313
end
14-
else
14+
elseif mode == :dev
1515
@test Pkg.add(url=package.repo) == nothing
16+
else
17+
throw(ArgumentError("`mode` argument to `test_packages` must be either `:release` or `:dev`."))
1618
end
1719
end
1820
end

0 commit comments

Comments
 (0)