Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | testing: implement 'Unordered Output' in Examples. | Brady Catherman | 2016-03-09 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | Adds a type of output to Examples that allows tests to have unordered output. This is intended to help clarify when the output of a command will produce a fixed return, but that return might not be in an constant order. Examples where this is useful would be documenting the rand.Perm() call, or perhaps the (os.File).Readdir(), both of which can not guarantee order, but can guarantee the elements of the output. Fixes #10149 Change-Id: Iaf0cf1580b686afebd79718ed67ea744f5ed9fc5 Reviewed-on: https://go-review.googlesource.com/19280 Reviewed-by: Andrew Gerrand <adg@golang.org> | ||||
* | math/rand: fix example_test to show with the correct method | Guobiao Mei | 2014-12-23 | 1 | -2/+2 |
| | | | | | | | | | | Originally it used r.Int63() to show "Uint32", and now we use the correct r.Uint32() method. Fixes #9429 Change-Id: I8a1228f1ca1af93b0e3104676fc99000257c456f Reviewed-on: https://go-review.googlesource.com/2069 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> | ||||
* | build: move package sources from src/pkg to src | Russ Cox | 2014-09-08 | 1 | -0/+97 |
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg. |