diff options
author | HÃ¥kon Hallingstad <hakon@oath.com> | 2018-11-29 12:27:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-29 12:27:41 +0100 |
commit | 2a3dfcc9b50fc16dd9551958d9614cc9ff0d5be3 (patch) | |
tree | 59e949997bc21749f184e6bede41005cc4173f24 /vespajlib/src/test/java/com/yahoo/tensor/MappedTensorTestCase.java | |
parent | aabdc58047ccb7597ccbe54ee35858792116197f (diff) |
Revert "Always output tensor type in toString"
Diffstat (limited to 'vespajlib/src/test/java/com/yahoo/tensor/MappedTensorTestCase.java')
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/tensor/MappedTensorTestCase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/tensor/MappedTensorTestCase.java b/vespajlib/src/test/java/com/yahoo/tensor/MappedTensorTestCase.java index 502f0270831..e312560d04c 100644 --- a/vespajlib/src/test/java/com/yahoo/tensor/MappedTensorTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/tensor/MappedTensorTestCase.java @@ -35,7 +35,7 @@ public class MappedTensorTestCase { cell().label("x", "0").value(1). cell().label("x", "1").value(2).build(); assertEquals(Sets.newHashSet("x"), tensor.type().dimensionNames()); - assertEquals("tensor(x{}):{{x:0}:1.0,{x:1}:2.0}", tensor.toString()); + assertEquals("{{x:0}:1.0,{x:1}:2.0}", tensor.toString()); } @Test @@ -45,7 +45,7 @@ public class MappedTensorTestCase { cell().label("x", "0").label("y", "0").value(1). cell().label("x", "1").label("y", "0").value(2).build(); assertEquals(Sets.newHashSet("x", "y"), tensor.type().dimensionNames()); - assertEquals("tensor(x{},y{}):{{x:0,y:0}:1.0,{x:1,y:0}:2.0}", tensor.toString()); + assertEquals("{{x:0,y:0}:1.0,{x:1,y:0}:2.0}", tensor.toString()); } } |