Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af11cbe

Browse files
committed
Case insensitive compare
1 parent 46b5ce4 commit af11cbe

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/libgit2.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,10 @@ mktempdir() do dir
368368
LibGit2.GitRepo(path)
369369
error("unexpected")
370370
catch e
371-
if Base.LibGit2.version() < v"0.26.0"
372-
msg = "Failed to resolve path"
373-
else
374-
msg = "failed to resolve path"
375-
end
376-
377371
@test typeof(e) == LibGit2.GitError
378-
@test startswith(sprint(show, e), "GitError(Code:ENOTFOUND, Class:OS, $msg")
372+
@test startswith(
373+
lowercase(sprint(show, e)),
374+
lowercase("GitError(Code:ENOTFOUND, Class:OS, failed to resolve path"))
379375
end
380376
path = joinpath(dir, "Example.BareTwo")
381377
repo = LibGit2.init(path, true)
@@ -1921,7 +1917,7 @@ mktempdir() do dir
19211917
deserialize(f)
19221918
end
19231919
@test err.code == LibGit2.Error.ERROR
1924-
@test err.msg == "invalid Content-Type: text/plain"
1920+
@test lowercase(err.msg) == lowercase("invalid Content-Type: text/plain")
19251921
end
19261922

19271923
# OpenSSL s_server should still be running

0 commit comments

Comments
 (0)