]> Cypherpunks repositories - gostls13.git/commitdiff
doc/progs: make sure all programs compile and run
authorRob Pike <r@golang.org>
Mon, 31 Jan 2011 22:41:36 +0000 (14:41 -0800)
committerRob Pike <r@golang.org>
Mon, 31 Jan 2011 22:41:36 +0000 (14:41 -0800)
Fixes #1455.

R=rsc
CC=golang-dev
https://golang.org/cl/4079055

doc/progs/run
doc/progs/strings.go

index 29f1f81528fb2dc94526db5d6cd0ea2bd208fae8..241e65dfadf201bff30a3d0d2d12ebc9b2428d16 100755 (executable)
@@ -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
index 0ec25f8e809c2cb19bc5299719e6430e3c91099b..2cdb6101a09aac4f8f672a30bed462b263449e5d 100644 (file)
@@ -4,7 +4,6 @@
 
 package main
 
-import "fmt"
 import "os"
 
 func main() {