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

Side by Side Diff: test/map.go

Issue 126720043: code review 126720043: test/mapnan.go: add regression test for non-empty inter... (Closed)
Patch Set: diff -r 70a668a2e09e1587fee166f92c265861c57a490f https://code.google.com/p/go/ Created 10 years, 8 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:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/maplinear.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // run 1 // run
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 // Test maps, almost exhaustively. 7 // Test maps, almost exhaustively.
8 // NaN complexity test is in mapnan.go. 8 // Complexity (linearity) test is in maplinear.go.
9 9
10 package main 10 package main
11 11
12 import ( 12 import (
13 "fmt" 13 "fmt"
14 "math" 14 "math"
15 "strconv" 15 "strconv"
16 ) 16 )
17 17
18 const count = 100 18 const count = 100
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 panic("not NaN") 675 panic("not NaN")
676 } 676 }
677 if v != 1 { 677 if v != 1 {
678 panic("wrong value") 678 panic("wrong value")
679 } 679 }
680 } 680 }
681 if iters != n { 681 if iters != n {
682 panic("wrong number of nan range iters") 682 panic("wrong number of nan range iters")
683 } 683 }
684 } 684 }
OLDNEW
« no previous file with comments | « no previous file | test/maplinear.go » ('j') | no next file with comments »

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