Skip to content

Commit

Permalink
Added test for filter(f, nil)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pan-Maciek committed Oct 5, 2020
1 parent 6d7e321 commit 8501f94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_list.jl
Expand Up @@ -82,6 +82,8 @@
@test l6.head == 2
@test l6.tail.head == 4
@test collect(l6) == [2, 4]
l6 = nil()
@test filter((x) -> true, l6) isa Nil
end

@testset "l7" begin
Expand Down

0 comments on commit 8501f94

Please sign in to comment.