diff options
author | Tristan Rice <rice@fn.lc> | 2018-06-18 12:43:51 -0700 |
---|---|---|
committer | Tristan Rice <rice@fn.lc> | 2018-06-19 14:50:20 -0700 |
commit | 577b256460dfca4e7c429437dded48e76715fee7 (patch) | |
tree | 60cae79034b1a5ea59935f87d0b3ea766e3a516b /tensorflow/go/operation_test.go | |
parent | ff7e6399443615675a3f1182c4f2e1850008da04 (diff) |
tensorflow/go: add tests for zero length arrays passed to C
Diffstat (limited to 'tensorflow/go/operation_test.go')
-rw-r--r-- | tensorflow/go/operation_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/go/operation_test.go b/tensorflow/go/operation_test.go index 0672e8ecc7..06b65bdfb7 100644 --- a/tensorflow/go/operation_test.go +++ b/tensorflow/go/operation_test.go @@ -222,6 +222,10 @@ func TestOperationConsumers(t *testing.T) { t.Fatalf("%d. Got op name %q, wanted %q", i, got, want) } } + + if len(b.Consumers()) != 0 { + t.Fatalf("expected %+v to have no consumers", b) + } } func forceGC() { |