JuliaLang/julia

Confusing test failure display for KeySet

Open

#40,188 opened on Mar 25, 2021

View on GitHub
 (10 comments) (1 reaction) (0 assignees)Julia (5,773 forks)batch import
display and printinggood first issue

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

Description

Julia 1.6.0-rc3

runtests.jl:

using Test

d = Dict("hello" => "world")
@test keys(d) == ["hello"]

Test output:

     Testing Running tests...
Test Failed at /Users/fons/Documents/Pluto.jl/test/runtests.jl:4
  Expression: keys(d) == ["hello"]
   Evaluated: ["hello"] == ["hello"]
ERROR: LoadError: There was an error during testing
in expression starting at /Users/fons/Documents/Pluto.jl/test/runtests.jl:4

Contributor guide