aboutsummaryrefslogtreecommitdiff
path: root/test/index.go
AgeCommit message (Collapse)Author
2019-09-08all: fix typosAinar Garipov
Use the following (suboptimal) script to obtain a list of possible typos: #!/usr/bin/env sh set -x git ls-files |\ grep -e '\.\(c\|cc\|go\)$' |\ xargs -n 1\ awk\ '/\/\// { gsub(/.*\/\//, ""); print; } /\/\*/, /\*\// { gsub(/.*\/\*/, ""); gsub(/\*\/.*/, ""); }' |\ hunspell -d en_US -l |\ grep '^[[:upper:]]\{0,1\}[[:lower:]]\{1,\}$' |\ grep -v -e '^.\{1,4\}$' -e '^.\{16,\}$' |\ sort -f |\ uniq -c |\ awk '$1 == 1 { print $2; }' Then, go through the results manually and fix the most obvious typos in the non-vendored code. Change-Id: I3cb5830a176850e1a0584b8a40b47bde7b260eae Reviewed-on: https://go-review.googlesource.com/c/go/+/193848 Reviewed-by: Robert Griesemer <gri@golang.org>
2016-05-02all: make copyright headers consistent with one space after periodEmmanuel Odeke
Follows suit with https://go-review.googlesource.com/#/c/20111. Generated by running $ grep -R 'Go Authors. All' * | cut -d":" -f1 | while read F;do perl -pi -e 's/Go Authors. All/Go Authors. All/g' $F;done The code in cmd/internal/unvendor wasn't changed. Fixes #15213 Change-Id: I4f235cee0a62ec435f9e8540a1ec08ae03b1a75f Reviewed-on: https://go-review.googlesource.com/21819 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-06-26Fix several out of date references to 4g/5g/6g/8g/9g.Aaron Jacobs
Change-Id: Ifb8e4e13c7778a7c0113190051415e096f5db94f Reviewed-on: https://go-review.googlesource.com/11390 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Andrew Gerrand <adg@golang.org>
2013-09-27test: recognize gccgo error message in index.goIan Lance Taylor
When a floating point constant is used as an array/slice index, gccgo prints "error: index must be integer"; gc prints "constant 2.1 truncated to integer". R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/14044044
2013-03-22cmd/gc: accept ideal float as indices.Rémy Oudompheng
Fixes #4813. R=golang-dev, daniel.morsing, rsc CC=golang-dev https://golang.org/cl/7625050
2012-11-08test: change index.go to test size of int, not GOARCH == "amd64"Ian Lance Taylor
Fixes the test to work correctly on other platforms with 64-bit ints, like Alpha. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6822099
2012-11-07test: run index test by defaultIan Lance Taylor
Running this test via "bash run" uncovered three different bugs (4344, 4348, 4353). We need to run it by default. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6832043
2012-11-06test: fix index.go to pass with recent index checksIan Lance Taylor
The compiler now gives an error for out of bounds constant indexes for arrays, and for negative constant indexes for both arrays and slices. With this change the index.go test passes if CLs 6815085, 6815088, and 6812089 are committed. R=golang-dev, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/6810085
2012-09-24build: make int 64 bits on amd64Russ Cox
The assembly offsets were converted mechanically using code.google.com/p/rsc/cmd/asmlint. The instruction changes were done by hand. Fixes #2188. R=iant, r, bradfitz, remyoudompheng CC=golang-dev https://golang.org/cl/6550058
2012-09-23test: expand run.go's errorcheck, make clear which bugs runRuss Cox
Today, if run.go doesn't understand a test header line it just ignores the test, making it too easy to write or edit tests that are not actually being run. - expand errorcheck to accept flags, so that bounds.go and escape*.go can run. - create a whitelist of skippable tests in run.go; skipping others is an error. - mark all skipped tests at top of file. Update #4139. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6549054
2012-05-24cmd/gc: fix small integer bounds check bugRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/6254046
2012-02-23test: commentary for [h-m]*.goRob Pike
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5674112
2010-09-19test: fix NaCl buildRuss Cox
Wasn't running the temp binary under $E (emulator). R=r CC=golang-dev https://golang.org/cl/2237043
2010-08-03gc: index bounds tests and fixesRuss Cox
move constant index checking to front end x[2:1] is a compile-time error now too R=ken2 CC=golang-dev https://golang.org/cl/1848056