From: Rob Pike Date: Mon, 31 Jan 2011 22:41:36 +0000 (-0800) Subject: doc/progs: make sure all programs compile and run X-Git-Tag: weekly.2011-02-01~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6990bc124fdc7e129968855ab6b81fce94b0e26a;p=gostls13.git doc/progs: make sure all programs compile and run Fixes #1455. R=rsc CC=golang-dev https://golang.org/cl/4079055 --- diff --git a/doc/progs/run b/doc/progs/run index 29f1f81528..241e65dfad 100755 --- a/doc/progs/run +++ b/doc/progs/run @@ -29,9 +29,8 @@ for i in \ sieve.go \ sieve1.go \ server1.go \ + strings.go \ ; do - BASE=$(basename $i .go) - $GC $i done @@ -58,6 +57,7 @@ testit helloworld "" "Hello, world; or Καλημέρα κόσμε; or こんに testit helloworld3 "" "hello, world can't open file; err=no such file or directory" testit echo "hello, world" "hello, world" testit sum "" "6" +testit strings "" "" alphabet=abcdefghijklmnopqrstuvwxyz rot13=nopqrstuvwxyzabcdefghijklm diff --git a/doc/progs/strings.go b/doc/progs/strings.go index 0ec25f8e80..2cdb6101a0 100644 --- a/doc/progs/strings.go +++ b/doc/progs/strings.go @@ -4,7 +4,6 @@ package main -import "fmt" import "os" func main() {