mirror of
https://github.com/golang/go
synced 2024-11-21 18:54:43 -07:00
- added another test
- added script to run tests - fixed primary expression syntax in go.atg SVN=112281
This commit is contained in:
parent
0908af75cd
commit
3cdf9c3bff
@ -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";
|
||||
}
|
||||
|
8
tests/runtests.sh
Executable file
8
tests/runtests.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user