(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestZeroShape(t *testing.T) { |
| 71 | var s Shape |
| 72 | if s.NumDimensions() != -1 { |
| 73 | t.Error(s.NumDimensions()) |
| 74 | } |
| 75 | if _, err := s.ToSlice(); err == nil { |
| 76 | t.Error("ToSlice() on a Shape of unknown number of dimensions should fail") |
| 77 | } |
| 78 | if s.IsFullySpecified() { |
| 79 | t.Error("Shape of unknown number of dimensions should not be fully specified") |
| 80 | } |
| 81 | if got, want := s.String(), "?"; got != want { |
| 82 | t.Errorf("Got %q, want %q", got, want) |
| 83 | } |
| 84 | |
| 85 | } |
nothing calls this directly
no test coverage detected