From 1d329f0d14966c984b7a0ee862b90e3441b09b86 Mon Sep 17 00:00:00 2001 From: Alex Kotenko Date: Sat, 19 Oct 2024 14:06:27 +0100 Subject: [PATCH] Add one more test --- combinations_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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},