diff --git a/combinations_test.go b/combinations_test.go index da90fa8..f4926b9 100644 --- a/combinations_test.go +++ b/combinations_test.go @@ -412,6 +412,16 @@ func TestAllWithRepetitionsInt(t *testing.T) { {2, 2}, }, }, + { + name: "Three items, m = 1", + in: []int{1, 2, 3}, + m: 1, + out: [][]int{ + {1}, + {2}, + {3}, + }, + }, { name: "Three items, m = 2", in: []int{1, 2, 3},