]> Cypherpunks repositories - gostls13.git/commitdiff
- added another test
authorRobert Griesemer <gri@golang.org>
Wed, 12 Mar 2008 22:29:57 +0000 (15:29 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 12 Mar 2008 22:29:57 +0000 (15:29 -0700)
- added script to run tests
- fixed primary expression syntax in go.atg

SVN=112281

tests/hashmap.go
tests/runtests.sh [new file with mode: 0755]

index f4b15183c7f7a024466dee876dce399ec9a2c318..8d5d5167d5c1016563ae86640a06af860a499e9c 100755 (executable)
@@ -166,9 +166,9 @@ func MakeNumber (x uint32) *Number {
 
 
 func main() {
-  func (n int) int { return n + 1; }(1);
+  //f unc (n int) int { return n + 1; }(1);
 
-  print "HashMap - gri 2/8/2008\n";
+  //print "HashMap - gri 2/8/2008\n";
   
   var hmap *HashMap = new(HashMap);
   hmap.Initialize(0);
@@ -182,5 +182,5 @@ func main() {
   //hmap.Lookup(x2, true);
   //hmap.Lookup(x3, true);
   
-  print "done\n";
+  //print "done\n";
 }
diff --git a/tests/runtests.sh b/tests/runtests.sh
new file mode 100755 (executable)
index 0000000..75b7ae2
--- /dev/null
@@ -0,0 +1,8 @@
+# Copyright 2009 The Go Authors.  All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+#!/bin/bash
+for f in *.go; do
+  ../src/go $f
+done