(t *testing.T)
| 8 | import "testing" |
| 9 | |
| 10 | func TestMeanUsingAndXor(t *testing.T) { |
| 11 | tests := getTests() |
| 12 | for _, tv := range tests { |
| 13 | t.Run(tv.name, func(t *testing.T) { |
| 14 | result := MeanUsingAndXor(tv.a, tv.b) |
| 15 | if result != tv.result { |
| 16 | t.Errorf("Wrong result! Expected:%d, returned:%d ", tv.result, result) |
| 17 | } |
| 18 | }) |
| 19 | } |
| 20 | |
| 21 | } |
| 22 | |
| 23 | func TestMeanUsingRightShift(t *testing.T) { |
| 24 | tests := getTests() |
nothing calls this directly
no test coverage detected