| // Copyright 2013 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. |
| var roundDownTests = []struct { |
| func TestRoundDown10(t *testing.T) { |
| for _, tt := range roundDownTests { |
| actual := testing.RoundDown10(tt.v) |
| if tt.expected != actual { |
| t.Errorf("roundDown10(%d): expected %d, actual %d", tt.v, tt.expected, actual) |
| var roundUpTests = []struct { |
| func TestRoundUp(t *testing.T) { |
| for _, tt := range roundUpTests { |
| actual := testing.RoundUp(tt.v) |
| if tt.expected != actual { |
| t.Errorf("roundUp(%d): expected %d, actual %d", tt.v, tt.expected, actual) |