(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestReslicing(t *testing.T) { |
| 41 | a := [5]int{0, 1, 2, 3, 4} |
| 42 | s := a[:0] |
| 43 | if cap(s) != cap(a) { |
| 44 | t.Error("cap(s) != cap(a)") |
| 45 | } |
| 46 | if len(s) != 0 { |
| 47 | t.Error("len(s) != 0") |
| 48 | } |
| 49 | s = a[1:3] |
| 50 | if cap(s) == len(s) { |
| 51 | t.Error("cap(s) == len(s)") |
| 52 | } |
| 53 | s = s[:cap(s)] |
| 54 | if cap(s) != len(s) { |
| 55 | t.Error("cap(s) != len(s)") |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func TestPow(t *testing.T) { |
| 60 | // if a, b := math.Pow(10.0, 33.0), 1.0e33; a != b { |
nothing calls this directly
no test coverage detected
searching dependent graphs…