From 377d28384c85781079e04aab3937170479da8cd6 Mon Sep 17 00:00:00 2001 From: Aoang Date: Wed, 31 Aug 2022 09:25:27 +0800 Subject: [PATCH] Run tests on Go 1.19 (#309) * Run tests on Go 1.19 * Format comment Finish the rest of the work for https://github.com/google/go-cmp/pull/304 Co-authored-by: Damien Neil --- .github/workflows/test.yml | 4 ++-- cmp/cmpopts/util_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a93f058..b49573d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x] + go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x] os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: @@ -17,5 +17,5 @@ jobs: - name: Test run: go test -v -race ./... - name: Format - if: matrix.go-version == '1.18.x' + if: matrix.go-version == '1.19.x' run: diff -u <(echo -n) <(gofmt -d .) diff --git a/cmp/cmpopts/util_test.go b/cmp/cmpopts/util_test.go index c2eaf0b..7adeb9b 100644 --- a/cmp/cmpopts/util_test.go +++ b/cmp/cmpopts/util_test.go @@ -1072,7 +1072,7 @@ func TestOptions(t *testing.T) { }, { label: "AcyclicTransformer", x: "this is a sentence", - y: "this is a sentence", + y: "this is a sentence", opts: []cmp.Option{ AcyclicTransformer("", strings.Fields), },