summaryrefslogtreecommitdiff
path: root/test/vectors.go
AgeCommit message (Collapse)AuthorFilesLines
2010-03-30single argument panicRuss Cox1-13/+16
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2009-11-24Change to container/vector interface:Robert Griesemer1-11/+11
- removed New(len int) in favor of new(Vector).Resize(len, cap) - removed Init(len int) in favor of Resize(len, cap) - runs all.bash Fixes issue 294. R=rsc, r, r1 http://codereview.appspot.com/157143
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox1-1/+1
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-02-13- vector package (identical to array except for names)Robert Griesemer1-3/+3
- updated some file (but not all - left array package in place for now) R=rsc DELTA=530 (483 added, 0 deleted, 47 changed) OCL=25025 CL=25025
2009-01-28additions to array container:Robert Griesemer1-1/+1
- added Slice, Cut, InsertArray, AppendArray - renamed Remove -> Delete (so we have: Insert, Delete, Cut) - more factoring of code - extra tests (could use some more) R=r,rsc DELTA=179 (127 added, 22 deleted, 30 changed) OCL=23648 CL=23685
2009-01-20delete exportRuss Cox1-1/+1
TBR=r OCL=23121 CL=23127
2009-01-16convert tests; nothing interesting.Russ Cox1-1/+1
R=r OCL=23012 CL=23014
2009-01-06new new & makeRuss Cox1-1/+1
R=r OCL=22166 CL=22166
2008-12-20fix some tests. only 3 remain broken (complit, hilbert, initcomma).Rob Pike1-1/+1
leaving golden.out alone for now. R=ken DELTA=13 (0 added, 0 deleted, 13 changed) OCL=21682 CL=21682
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox1-2/+2
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-11-19- removed uses of vector in favor of array in a few placesRobert Griesemer1-3/+3
- fixed make.bash R=r DELTA=21 (1 added, 3 deleted, 17 changed) OCL=19624 CL=19629
2008-09-02vector cleanup:Rob Pike1-1/+1
- change Delete to Remove - return deleted element in Remove - remove range checking (runtime does this for you) R=gri OCL=14714 CL=14714
2008-08-29- updated and cleaned up vector.go to use new array instructionsRobert Griesemer1-0/+61
- added initial test cases (needs to be expanded) R=r DELTA=135 (84 added, 30 deleted, 21 changed) OCL=14654 CL=14654