Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: perf/go/vec/vec_test.go

Issue 777413002: Add new tests to presubmit, fix errors (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Run "go vet" once in the root dir Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 package vec 1 package vec
2 2
3 import ( 3 import (
4 "math" 4 "math"
5 "testing" 5 "testing"
6 ) 6 )
7 7
8 func near(a, b float64) bool { 8 func near(a, b float64) bool {
9 return math.Abs(a-b) < 0.001 9 return math.Abs(a-b) < 0.001
10 } 10 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Idx: 0, 108 Idx: 0,
109 }, 109 },
110 { 110 {
111 Slice: []float64{4}, 111 Slice: []float64{4},
112 Idx: -1, 112 Idx: -1,
113 }, 113 },
114 } 114 }
115 for _, tc := range testCases { 115 for _, tc := range testCases {
116 _, err := FillAt(tc.Slice, tc.Idx) 116 _, err := FillAt(tc.Slice, tc.Idx)
117 if err == nil { 117 if err == nil {
118 » » » t.Fatalf("Expected %q to fail FillAt.", tc) 118 » » » t.Fatalf("Expected \"%v\" to fail FillAt.", tc)
119 } 119 }
120 } 120 }
121 } 121 }
OLDNEW
« no previous file with comments | « perf/go/trybot/trybot.go ('k') | run_unittests » ('j') | run_unittests » ('J')

Powered by Google App Engine
This is Rietveld 408576698