diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-02-01 11:03:17 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-02-01 11:03:17 +0100 |
commit | d2579b9fce1e2d5dd5f509ff767b986129e0973a (patch) | |
tree | 1206c16a24478ed1cc4d5eecb17966acf6f56267 /vespajlib/src/test/java | |
parent | c4dcb35fb2979ea07b4ac576a95089a5c53e68dc (diff) |
- Use numericLabel over label for address manipulation.
- Only use label when actual string representation is needed.
Diffstat (limited to 'vespajlib/src/test/java')
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/tensor/TensorAddressTestCase.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/tensor/TensorAddressTestCase.java b/vespajlib/src/test/java/com/yahoo/tensor/TensorAddressTestCase.java index a24475a6a24..dd40e3105bf 100644 --- a/vespajlib/src/test/java/com/yahoo/tensor/TensorAddressTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/tensor/TensorAddressTestCase.java @@ -73,4 +73,11 @@ public class TensorAddressTestCase { } } + @Test + void testPartialCopy() { + var abcd = ofLabels("a", "b", "c", "d"); + int[] o_1_3_2 = {1,3,2}; + equal(ofLabels("b", "d", "c"), abcd.partialCopy(o_1_3_2)); + } + } |