lostluck commented on a change in pull request #15110: URL: https://github.com/apache/beam/pull/15110#discussion_r661765809
########## File path: sdks/go/pkg/beam/testing/passert/equals.go ########## @@ -40,6 +40,18 @@ func Equals(s beam.Scope, col beam.PCollection, values ...interface{}) beam.PCol return equals(subScope, col, other) } +// EqualsList verifies that the given collection has the same values as a +// given list, under coder equality. The values must be provided as an +// array or slice. +func EqualsList(s beam.Scope, col beam.PCollection, list interface{}) beam.PCollection { Review comment: Consider adding an additional statement saying that this is equivalent to using a beam.CreateList PCollection as an expected value to Equals. This does help save a line or two for additional semantic clarity, but noting the equivalence helps make beam more accessible. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org