Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Drop 0.3 and support 0.5 #72

Merged
merged 8 commits into from
Sep 21, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ test_imap(
[]
)

test_imap(
Any[],
Union{}[]
)

# Simple operation
test_imap(
Any[1,2,3],
Expand Down Expand Up @@ -166,6 +171,11 @@ test_groupby(
Any[]
)

test_groupby(
Union{}[],
Any[]
)

# Singletons
test_groupby(
["xxx"],
Expand Down Expand Up @@ -299,7 +309,8 @@ macro test_enumerate(input)
end

@test_enumerate [:a, :b, :c]
@test_enumerate []
@test_enumerate Union{}[]
@test_enumerate Any[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that on 0.4+ Any[] is the same with []. Doesn't really mater which one to use.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Just being more explicit as these tests are no longer just meant to test "empty arrays".


# @take
# -----
Expand Down