Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Commit

Permalink
Disable broadcasting test
Browse files Browse the repository at this point in the history
Currently doesn't work due to the new changes from JuliaLang/julia#26891
  • Loading branch information
omus committed Apr 30, 2018
1 parent 62e1b70 commit 466aced
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NamedTuples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ Base.Broadcast.promote_containertype(_, ::Type{NamedTuple}) = error()
_map(f, nts...)
end

else
elseif VERSION < v"0.7.0-DEV.4955"

@inline function Base.Broadcast.broadcast(f, nt::NamedTuple)
map(f, nt)
Expand Down
5 changes: 4 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ y = delete( x, :a)

@test merge( nt, @NT( d = "hello", e = "world")) == @NT( a=1,b=2,c=3,d="hello",e="world")

@test get.(@NT( a = Nullable(3), b = Nullable("world") )) == @NT( a = 3, b = "world")
# TODO: Support new broadcasting interface (https://github.com/JuliaLang/julia/pull/26891)
if VERSION < v"0.7.0-DEV.4955"
@test get.(@NT( a = Nullable(3), b = Nullable("world") )) == @NT( a = 3, b = "world")
end
@test_throws MethodError @NT( a = 3) .+ [4]
@test_throws MethodError [4] .+ @NT( a = 3)

Expand Down

0 comments on commit 466aced

Please sign in to comment.