Skip to content

Commit a12fea0

Browse files
committed
update tests per removal of map(f) = ()
1 parent 643ec64 commit a12fea0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

base/tuple.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ heads(t::Tuple, ts::Tuple...) = (t[1], heads(ts...)...)
7979
tails() = ()
8080
tails(t::Tuple, ts::Tuple...) = (tail(t), tails(ts...)...)
8181
map(f, ::Tuple{}, ts::Tuple...) = ()
82-
map(f, ts::Tuple...) = (f(heads(ts...)...), map(f, tails(ts...)...)...)
82+
map(f, t::Tuple, ts::Tuple...) = (f(heads(t, ts...)...), map(f, tails(t, ts...)...)...)
8383

8484
# type-stable padding
8585
fill_to_length{N}(t::Tuple, val, ::Type{Val{N}}) = _ftl((), val, Val{N}, t...)

test/tuple.jl

-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ foo(x) = 2x
7272
foo(x, y) = x + y
7373
foo(x, y, z) = x + y + z
7474

75-
# 0 argument
76-
@test map(foo) === 2
77-
7875
# 1 argument
7976
@test map(foo, ()) === ()
8077
@test map(foo, (1,)) === (2,)

0 commit comments

Comments
 (0)