Skip to content

Commit 269a86f

Browse files
committed
add broadcast test
1 parent 2a0a1f3 commit 269a86f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/patterns.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ using Test
2323
end
2424
end
2525

26+
@testset "ArrowPattern broadcast" begin
27+
pattern = (:a, :b, :c) --> (:c, :b, :a)
28+
@test identity.(pattern) == pattern
29+
end
30+
2631
@testset "ArrowPattern validation" begin
2732
@test_throws "Invalid pattern" (:a, 'b') --> ('b', :a)
2833
end

0 commit comments

Comments
 (0)