diff --git a/stdlib/LibGit2/test/libgit2.jl b/stdlib/LibGit2/test/libgit2.jl index 892fb8bb6f3fe..c987438aace86 100644 --- a/stdlib/LibGit2/test/libgit2.jl +++ b/stdlib/LibGit2/test/libgit2.jl @@ -171,6 +171,12 @@ end @test findfirst(isequal(LibGit2.Consts.FEATURE_HTTPS), f) !== nothing end +@testset "No error at first" begin + class, msg = LibGit2.Error.last_error() + @test msg == "No errors" + @test class == LibGit2.Error.Class(0) +end + @testset "OID" begin z = LibGit2.GitHash() @test LibGit2.iszero(z)