Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(104)

Delta Between Two Patch Sets: test/64bit.go

Issue 5869049: code review 5869049: test: use testlib in a few more cases (part 2) (Closed)
Left Patch Set: diff -r 74edd315eec5 https://code.google.com/p/go/ Created 13 years ago
Right Patch Set: diff -r f4f63fb397c6 https://code.google.com/p/go/ Created 12 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | test/chan/select5.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // run|run - 1 // runoutput
2 2
3 // Copyright 2009 The Go Authors. All rights reserved. 3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
6 6
7 // Generate test of 64-bit arithmetic. 7 // Generate test of 64-bit arithmetic.
8 // Most synthesized routines have different cases for 8 // Most synthesized routines have different cases for
9 // constants vs variables and even the generated code has 9 // constants vs variables and even the generated code has
10 // different cases for large and small constants, 10 // different cases for large and small constants,
11 // so try a good range of inputs. 11 // so try a good range of inputs.
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 constTests() 698 constTests()
699 699
700 fmt.Fprintf(bout, "func main() {\n") 700 fmt.Fprintf(bout, "func main() {\n")
701 for i := 0; i < ntest; i++ { 701 for i := 0; i < ntest; i++ {
702 fmt.Fprintf(bout, "\ttest%v();\n", i) 702 fmt.Fprintf(bout, "\ttest%v();\n", i)
703 } 703 }
704 fmt.Fprintf(bout, "\tif !ok { os.Exit(1) }\n") 704 fmt.Fprintf(bout, "\tif !ok { os.Exit(1) }\n")
705 fmt.Fprintf(bout, "}\n") 705 fmt.Fprintf(bout, "}\n")
706 bout.Flush() 706 bout.Flush()
707 } 707 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b