Skip to content

Commit 6935eb2

Browse files
ti-syuyichao
authored andcommitted
Test for permutations type-stability
1 parent 796ed38 commit 6935eb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/permutations.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ using Base.Test
1919
@test collect(permutations("", 0)) == Any[Char[]]
2020
@test collect(permutations("", -1)) == Any[]
2121

22+
@inferred first(permutations("abc", 2))
23+
2224
# multiset_permutations
2325
@test collect(multiset_permutations("aabc", 5)) == Any[]
2426
@test collect(multiset_permutations("aabc", 2)) == Any[['a','a'],['a','b'], ['a','c'],['b','a'],

0 commit comments

Comments
 (0)