summaryrefslogtreecommitdiff
path: root/test/ken
Commit message (Collapse)AuthorAgeFilesLines
* go/test/chan1.go: fix typoRob Pike2012-02-251-1/+1
| | | | | | | | Found by Lucio De Re R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/5694071
* test: document ken/*.goRob Pike2012-02-2440-1/+75
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5694065
* test: add cmpout to testlibBrad Fitzpatrick2012-02-242-2/+2
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5699060
* test: use testlib (fourth 100)Russ Cox2012-02-1638-38/+38
| | | | | | | | | | | X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5673079
* test: test slice beyond lenIan Lance Taylor2012-02-031-0/+3
| | | | | | | | | | When slicing a slice, the bounds may be > len as long as they are <= cap. Interestingly, gccgo got that wrong and still passed the testsuite and all the library tests. R=golang-dev, rsc, iant CC=golang-dev http://codereview.appspot.com/5622053
* test: split golden.out into expected output per testIan Lance Taylor2012-01-187-32/+70
| | | | | | | | This will permit gccgo to check test output. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5554056
* test: change several tests to not printIan Lance Taylor2012-01-186-47/+59
| | | | | | | | | | | This will make these tests more meaningful for gccgo, which runs tests in parallel and has no equivalent to golden.out. Remove ken/simpprint.go since it duplicates helloworld.go. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5536058
* test: gofmt a few testsIan Lance Taylor2012-01-184-177/+172
| | | | | | | | | | I'm planning to change these tests, but the gofmt changes are fairly extensive, so I'm separating the gofmt changes from the substantive changes. R=golang-dev, rsc, r CC=golang-dev http://codereview.appspot.com/5557052
* renaming_4: gofix -r everything/but/src/pkgRob Pike2011-11-082-2/+2
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/5338043
* cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: ↵Russ Cox2011-10-251-1/+1
| | | | | | | | | | use rune Nothing terribly interesting here. R=golang-dev, bradfitz, gri, r CC=golang-dev http://codereview.appspot.com/5300043
* gc: handle complex CONVNOPRuss Cox2011-09-191-0/+12
| | | | | | | | Fixes issue 2256. R=ken2 CC=golang-dev http://codereview.appspot.com/5044047
* fix tree for reflect renameRuss Cox2011-04-251-1/+1
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/4435067
* update go tree for reflect changesRuss Cox2011-04-081-3/+3
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/4353043
* test: do not depend on implicit if conditionRuss Cox2011-02-221-97/+0
| | | | | | | | | Deleted test/ken/robif.go because test/if.go is the same program modulo formatting. R=golang-dev, gri, r2 CC=golang-dev http://codereview.appspot.com/4186068
* delete float, complex - code changesRuss Cox2011-01-1910-102/+99
| | | | | | | | | | | also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev http://codereview.appspot.com/3991043
* test/ken/convert.go: add conversion torture testRob Pike2010-11-011-0/+431
| | | | | | | | (written by ken) R=ken2 CC=golang-dev http://codereview.appspot.com/2823042
* test new slicesRuss Cox2010-09-082-0/+40
| | | | | | R=r CC=golang-dev http://codereview.appspot.com/2128047
* test: don't assign address of array to slice.Ian Lance Taylor2010-08-312-6/+6
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/2084042
* more soft float support. passes several basic testsKai Backman2010-07-201-1/+1
| | | | | | | | | | | | but with less precision than hardware counterparts. fixed a number of tests to output BUG when they failed. changed the runner to distinghuish between output and output containing ^BUG R=rsc CC=dho, golang-dev http://codereview.appspot.com/1778041
* gc: fix crash for nested complex divisionRuss Cox2010-06-231-0/+6
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/1720043
* reflect: add Type.Bits method, add tags to prohibit conversionsRuss Cox2010-06-211-3/+0
| | | | | | | | gob: substitute slice for map R=r CC=golang-dev http://codereview.appspot.com/1699045
* misc cleanup: gofmt + &x -> x[0:] conversionRuss Cox2010-06-081-3/+3
| | | | | | R=gri CC=golang-dev http://codereview.appspot.com/1620042
* single argument panicRuss Cox2010-03-303-306/+301
| | | | | | | | | | | | 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
* delete all uses of panicln by rewriting them using panic or,Rob Pike2010-03-2411-1287/+2007
| | | | | | | | | in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
* 1. decommit complex(float) conversionKen Thompson2010-03-093-6/+58
| | | | | | | | | | | 2. add complex algorithm for map/chan 3. test for use of complex in array, slice, field, chan, map, field, pointer. R=rsc CC=golang-dev http://codereview.appspot.com/384041
* identical complex implementationKen Thompson2010-03-095-11/+11
| | | | | | | | | for 6g and 8g. can also be used for 5g. 5g is still a stub. R=rsc CC=golang-dev http://codereview.appspot.com/362041
* 6g complex type usableKen Thompson2010-03-053-3/+83
| | | | | | | | 8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
* test: fix 386 build (missing complex)Russ Cox2010-03-023-2/+4
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/223106
* more on type complex.Ken Thompson2010-03-023-0/+208
| | | | | | | | getting close. R=rsc CC=golang-dev http://codereview.appspot.com/224105
* Add explicit locking.Ian Lance Taylor2010-01-191-7/+29
| | | | | | | | | | Since gcco runs goroutines in independent threads, it needs locking for the global variables. This shows up when I use ordinary increments rather than locked increments for var++. R=ken2, ken3 CC=golang-dev http://codereview.appspot.com/190074
* trailing comma's are not accepted with current syntaxRobert Griesemer2009-12-101-2/+1
| | | | | R=rsc, ken2 http://codereview.appspot.com/174047
* make test/ken safe for optional semisRobert Griesemer2009-12-1032-394/+188
| | | | | R=rsc, ken2, ken3 http://codereview.appspot.com/174042
* x[y:] for stringsRuss Cox2009-11-201-1/+1
| | | | | R=ken2 http://codereview.appspot.com/157114
* x[lo:] - gc and runtime.Russ Cox2009-11-202-0/+16
| | | | | | | | | | * add runtime sliceslice1 for x[lo:] * remove runtime arraytoslice, rewriting &arr into arr[0:len(arr)]. * port cgen_inline into 8g, 5g. * use native memmove in maps R=ken2 http://codereview.appspot.com/157106
* write stack traces and panics to stderrRob Pike2009-10-131-0/+2
| | | | | | | R=rsc DELTA=31 (5 added, 3 deleted, 23 changed) OCL=35700 CL=35700
* time tests; sort -nr times.out | sed 10q is illuminating.Russ Cox2009-10-092-2/+2
| | | | | | | | | | cut the slowest tests down from a few seconds to under half a second. R=r DELTA=21 (6 added, 1 deleted, 14 changed) OCL=35509 CL=35519
* disallow interface { x, y() }Russ Cox2009-09-282-7/+8
| | | | | | R=ken OCL=35042 CL=35044
* fix "declared and not used" in tests;Russ Cox2009-09-143-14/+16
| | | | | | | | | also template/template.go, missed last time. R=r DELTA=116 (61 added, 10 deleted, 45 changed) OCL=34620 CL=34622
* compound literal testKen Thompson2009-09-081-0/+171
| | | | | | R=rsc OCL=34453 CL=34455
* arraytoslice and some cleanupKen Thompson2009-08-281-1/+6
| | | | | | R=rsc OCL=34058 CL=34058
* sliceslice inlineKen Thompson2009-08-281-0/+129
| | | | | | R=rsc OCL=34041 CL=34041
* inline slicearrayKen Thompson2009-08-271-0/+127
| | | | | | R=rsc OCL=33974 CL=33974
* Enable these tests. Fix divconst.go and modconst.go toIan Lance Taylor2009-08-212-4/+0
| | | | | | | | | | compile with the current compiler. Adjust expected error message in method1.go to match 6g output. R=rsc DELTA=9 (2 added, 5 deleted, 2 changed) OCL=33674 CL=33682
* fix up some irregular indentationRob Pike2009-08-173-4/+2
| | | | | | R=rsc OCL=33382 CL=33391
* delete forward type declarationsRuss Cox2009-08-121-6/+0
| | | | | | | R=r DELTA=163 (1 added, 149 deleted, 13 changed) OCL=33106 CL=33111
* convert non-pkg go files to whole-package compilation.Russ Cox2009-08-124-11/+0
| | | | | | | | | mostly removing forward declarations. R=r DELTA=138 (2 added, 127 deleted, 9 changed) OCL=33068 CL=33099
* 8-bit div and modRuss Cox2009-08-102-0/+220
| | | | | | R=ken OCL=32975 CL=32975
* another plateau - almost doneKen Thompson2009-08-082-20/+717
| | | | | | | | | only need to fix up certain denominators R=rsc OCL=32928 CL=32928
* divide by a constant power of 2Ken Thompson2009-08-061-0/+45
| | | | | | R=rsc OCL=32858 CL=32858
* string([]int) is now implementedRob Pike2009-06-041-5/+15
| | | | | | | R=rsc DELTA=18 (10 added, 2 deleted, 6 changed) OCL=29909 CL=29909