From 0b5f72251bb564c7780b61f56a37faab31ed3512 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 1 Mar 2024 17:40:50 -0800 Subject: slices: add iterator-related functions Fixes #61899 Change-Id: Icbde1ac8293723eefc3251008ae9711e756ed1b3 Reviewed-on: https://go-review.googlesource.com/c/go/+/568477 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Alan Donovan LUCI-TryBot-Result: Go LUCI --- src/cmd/dist/test.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/cmd/dist/test.go') diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index a87c2a1aae..b0a3bd7e52 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -713,13 +713,15 @@ func (t *tester) registerTests() { // GOEXPERIMENT=rangefunc tests if !t.compileOnly { - t.registerTest("GOEXPERIMENT=rangefunc go test iter", - &goTest{ - variant: "iter", - short: t.short, - env: []string{"GOEXPERIMENT=rangefunc"}, - pkg: "iter", - }) + for _, pkg := range []string{"iter", "slices"} { + t.registerTest("GOEXPERIMENT=rangefunc", + &goTest{ + variant: pkg, + short: t.short, + env: []string{"GOEXPERIMENT=rangefunc"}, + pkg: pkg, + }) + } } // GODEBUG=gcstoptheworld=2 tests. We only run these in long-test -- cgit v1.2.3-54-g00ecf