Skip to content

Commit b3b9482

Browse files
committed
comments
1 parent 410ab9b commit b3b9482

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/set.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ end
520520

521521
"""
522522
allequal(itr) -> Bool
523-
allunique(f, xs)
523+
allequal(f, xs)
524524
525525
Return `true` if all values from `itr` are equal when compared with [`isequal`](@ref).
526526
The second form takes `itr = (f(x) for x in xs)`.

test/sets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ end
549549
@test !allunique(sin, [1,2,3,1])
550550
@test allunique(sin, (1, 2, pi, im)) # eltype Any
551551
@test allunique(abs2, 1:100)
552-
@test !allunique(abs2, repeat(1:100, 2))
552+
@test !allunique(abs, -10:10)
553553
@test allunique(abs2, Vector{Any}(1:100))
554554
# These cases don't call the function at all:
555555
@test allunique(error, [])

0 commit comments

Comments
 (0)