(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func TestIsPowerOfTwo(t *testing.T) { |
| 39 | tests := getTestsForPowerOfTwo() |
| 40 | for _, tv := range tests { |
| 41 | t.Run(tv.name, func(t *testing.T) { |
| 42 | result := IsPowerOfTwo(tv.a) |
| 43 | t.Log(tv.a, " ", result) |
| 44 | if result != tv.missing { |
| 45 | t.Errorf("Wrong result! Expected:%v, returned:%v ", tv.missing, result) |
| 46 | } |
| 47 | }) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func TestIsPowerOfTwoLeftShift(t *testing.T) { |
| 52 | tests := getTestsForPowerOfTwo() |
nothing calls this directly
no test coverage detected