From 35cd85f327217813f850d2b7fc5bbe66f6b5bc8c Mon Sep 17 00:00:00 2001 From: Jake Bolewski Date: Tue, 29 Sep 2015 15:29:04 -0400 Subject: [PATCH] add error branch test for package availablity --- test/pkg.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/pkg.jl b/test/pkg.jl index 784e4e7ae295d..6c6deea4ec916 100644 --- a/test/pkg.jl +++ b/test/pkg.jl @@ -41,6 +41,7 @@ temp_pkg_dir() do Pkg.rm("Example") @test isempty(Pkg.installed()) @test !isempty(Pkg.available("Example")) + @test Pkg.available("IDoNotExist") === nothing Pkg.clone("https://github.com/JuliaLang/Example.jl.git") @test [keys(Pkg.installed())...] == ["Example"] Pkg.status("Example", iob)