Skip to content

Commit

Permalink
update tests to pass go1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
quasilyte committed Oct 14, 2021
1 parent 2dc2b4c commit b7c5a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _test/install/gitclone/expected6.txt
@@ -1 +1 @@
/usr/local/go/src/encoding/base32/base32_test.go:99:4: exprUnparen: the parentheses around p.encoded[len(p.encoded)-1] == '=' are superfluous (rules.go:17)
/usr/local/go/src/encoding/base32/base32_test.go:98:4: exprUnparen: the parentheses around p.encoded[len(p.encoded)-1] == '=' are superfluous (rules.go:17)
4 changes: 2 additions & 2 deletions _test/install/gitclone/test.bash
Expand Up @@ -27,8 +27,8 @@ diff -u actual.txt /root/expected4.txt
./go-ruleguard -e 'm.Match(`$f($*_, ($x), $*_)`)' /root/target.go &> actual.txt || true
diff -u actual.txt /root/expected5.txt

# TODO: make it work with `go mod vendor` properly.
unset GO111MODULE
# Run inside GOROOT.
export GO111MODULE=off
cd /usr/local/go
go get -v -u github.com/quasilyte/go-ruleguard/dsl
/root/go-ruleguard/go-ruleguard -rules /root/rules.go ./src/encoding/... &> actual.txt || true
Expand Down

0 comments on commit b7c5a57

Please sign in to comment.