aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAoang <aoang@x2oe.com>2022-08-31 09:25:27 +0800
committerGitHub <noreply@github.com>2022-08-30 18:25:27 -0700
commit377d28384c85781079e04aab3937170479da8cd6 (patch)
tree5f6b786e0f68821f9a9ae6058515b03eee988cea
parent6606d4d51e3239f038565f525940ac6043aff53e (diff)
downloadgo-cmp-377d28384c85781079e04aab3937170479da8cd6.tar.gz
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 <neild@users.noreply.github.com>
-rw-r--r--.github/workflows/test.yml4
-rw-r--r--cmp/cmpopts/util_test.go2
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),
},